[1m[36m (244.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
[1m[35m (125.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateCkeditorAssets (20140313225259)
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime, "updated_at" datetime) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225259"]]
[1m[36m (127.6ms)[0m [1mcommit transaction[0m
Migrating to CreateContent (20140313225260)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "contents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "menu_item_id" integer, "body" text NOT NULL, "body_filtered" text NOT NULL, "body_short" text NOT NULL, "clicks" integer DEFAULT 0, "views" integer DEFAULT 0, "published_at" datetime NOT NULL, "is_active" boolean DEFAULT 'f', "site_id" integer NOT NULL, "language_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_contents_on_site_id_and_language_id_and_is_active" ON "contents" ("site_id", "language_id", "is_active")
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_contents_on_user_id" ON "contents" ("user_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225260"]]
[1m[36m (121.4ms)[0m [1mcommit transaction[0m
Migrating to CreateLanguage (20140313225261)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "iso_639_1" varchar(255)) [0m
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_languages_on_iso_639_1" ON "languages" ("iso_639_1")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140313225261"]]
[1m[35m (123.3ms)[0m commit transaction
Migrating to CreateMenu (20140313225262)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "menus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "published" boolean, "default_menu_item_id" integer, "site_id" integer, "language_id" integer, "created_at" datetime, "updated_at" datetime)
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_menus_on_site_id_and_language_id" ON "menus" ("site_id", "language_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225262"]]
[1m[36m (131.3ms)[0m [1mcommit transaction[0m
Migrating to CreateMenuItems (20140313225263)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "menu_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "menu_id" integer, "title" varchar(255), "published" boolean, "target_type" varchar(255), "target_data" text, "parent_id" integer, "position" integer, "full_path" varchar(255)) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_menu_items_on_menu_id_and_full_path" ON "menu_items" ("menu_id", "full_path")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140313225263"]]
[1m[35m (131.4ms)[0m commit transaction
Migrating to CreateSites (20140313225264)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "host" varchar(255), "is_active" boolean, "is_default" boolean, "tracking_code" text, "description" text, "template" varchar(255), "user_signup_allowed" boolean DEFAULT 'f', "default_language_id" integer, "redirect_to_id" integer)
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_sites_on_host" ON "sites" ("host")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225264"]]
[1m[36m (131.7ms)[0m [1mcommit transaction[0m
Migrating to CreateUser (20140313225265)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "admin_layout" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225265"]]
[1m[36m (107.3ms)[0m [1mcommit transaction[0m
Migrating to CreateOdaniaTags (20140323201042)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "site_id" integer NOT NULL, "count" integer DEFAULT 0) [0m
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_site_id_and_name" ON "tags" ("site_id", "name")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140323201042"]]
[1m[35m (148.2ms)[0m commit transaction
Migrating to CreateOdaniaTagXrefs (20140323201249)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "tag_xrefs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "ref_type" varchar(255), "ref_id" integer, "context" varchar(128))
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_tag_xrefs_on_tag_id_and_context" ON "tag_xrefs" ("tag_id", "context")[0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_tag_xrefs_on_ref_type_and_ref_id_and_context" ON "tag_xrefs" ("ref_type", "ref_id", "context")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140323201249"]]
[1m[35m (106.0ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00], ["name", "User1"], ["updated_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 10:47:52 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "Admin"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Sun, 06 Apr 2014 08:47:52 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User2"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "contents" WHERE "contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User3"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (62.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 146ms (Views: 143.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User4"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User5"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User6"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (26.6ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User7"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 0 ORDER BY "contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User8"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "languages" WHERE "languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'Engilish' AND "languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'en' AND "languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "languages" SET "name" = ?, "iso_639_1" = ? WHERE "languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 0 ORDER BY "languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User9"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User10"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User11"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menu_items" WHERE "menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User12"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 39ms (Views: 9.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User13"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."site_id" = 1 AND "contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User14"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User15"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (26.4ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (27.7ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 34ms (Views: 6.1ms | ActiveRecord: 26.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User16"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 0 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User17"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User18"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" IS NULL AND "menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["name", "User19"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menus" WHERE "menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User20"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User21"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User22"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."id" != 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menus" SET "title" = ?, "updated_at" = ? WHERE "menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User23"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User24"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 0 ORDER BY "menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User25"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User26"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User27"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User28"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (7.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User29"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User30"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User31"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE ("sites"."host" = 'www.test.de' AND "sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE ("sites"."name" = 'Page1' AND "sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User32"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User33"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 0 ORDER BY "sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User34"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain2.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 2 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain3.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'en' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'redirect.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
SQLite3::SQLException: no such column: language.iso_639_1: SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 21ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User35"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User36"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-06 10:47:54 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User37"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T2' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User38"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T8' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 4 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User39"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "tags" WHERE "tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User40"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User41"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain5.com' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User42"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
SQLite3::SQLException: no such column: language.iso_639_1: SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User43"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" IS NULL ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["name", "User44"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User45"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User46"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
SQLite3::SQLException: no such column: language.iso_639_1: SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User47"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User48"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User49"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
SQLite3::SQLException: no such column: language.iso_639_1: SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User50"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User51"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
SQLite3::SQLException: no such column: language.iso_639_1: SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User52"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User53"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
SQLite3::SQLException: no such column: language.iso_639_1: SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "language"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User54"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'ABC-Tag' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC-Tag' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 50ms (Views: 44.4ms | ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User55"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 12ms (Views: 8.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["name", "User56"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:47:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User1"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 10:48:19 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "Admin"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User2"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "contents" WHERE "contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User3"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (41.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 96ms (Views: 93.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User4"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User5"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User6"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (26.5ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User7"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 0 ORDER BY "contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["name", "User8"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "languages" WHERE "languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'Engilish' AND "languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'en' AND "languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "languages" SET "name" = ?, "iso_639_1" = ? WHERE "languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 0 ORDER BY "languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User9"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User10"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User11"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menu_items" WHERE "menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User12"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 40ms (Views: 10.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User13"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."site_id" = 1 AND "contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User14"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User15"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (27.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (28.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 35ms (Views: 6.3ms | ActiveRecord: 27.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User16"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 0 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User17"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User18"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" IS NULL AND "menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User19"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menus" WHERE "menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User20"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User21"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User22"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."id" != 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "menus" SET "title" = ?, "updated_at" = ? WHERE "menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User23"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User24"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 0 ORDER BY "menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User25"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User26"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User27"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User28"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (8.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User29"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User30"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User31"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE ("sites"."host" = 'www.test.de' AND "sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE ("sites"."name" = 'Page1' AND "sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User32"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User33"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 0 ORDER BY "sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["name", "User34"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Sun, 06 Apr 2014 08:48:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain2.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 2 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain3.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'en' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'redirect.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.3ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 36ms (Views: 35.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User35"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User36"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-06 10:48:21 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User37"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T2' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User38"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "tags" WHERE "tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T8' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 4 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User39"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User40"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User41"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain5.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User42"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 40ms (ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User43"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" IS NULL ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User44"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User45"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User46"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title105' ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User47"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User48"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User49"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title107/2-site-45' ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title107' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (5.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 14.3ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User50"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User51"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title108' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User52"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User53"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title109/title110' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 40ms (Views: 8.1ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User54"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'ABC-Tag' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC-Tag' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User55"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 10ms (Views: 7.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["name", "User56"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 08:48:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mSavepoint (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mSavepoint (8.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (4.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
ActiveRecord::JDBCError: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'odania_portal_test.sites' doesn't exist: SHOW FULL COLUMNS FROM `sites`
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (4.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8[0m
[1m[35m (10.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36mActiveRecord::SchemaMigration Load (2.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
Migrating to CreateCkeditorAssets (20140313225259)
[1m[35m (3.0ms)[0m CREATE TABLE `ckeditor_assets` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `data_file_name` varchar(255) NOT NULL, `data_content_type` varchar(255), `data_file_size` int(11), `assetable_id` int(11), `assetable_type` varchar(30), `type` varchar(30), `width` int(11), `height` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8
[1m[36m (42.0ms)[0m [1mCREATE INDEX `idx_ckeditor_assetable_type` ON `ckeditor_assets` (`assetable_type`, `type`, `assetable_id`)[0m
[1m[35m (11.0ms)[0m CREATE INDEX `idx_ckeditor_assetable` ON `ckeditor_assets` (`assetable_type`, `assetable_id`)
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140313225259')[0m
Migrating to CreateContent (20140313225260)
[1m[35m (6.0ms)[0m CREATE TABLE `contents` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) NOT NULL, `menu_item_id` int(11), `body` text NOT NULL, `body_filtered` text NOT NULL, `body_short` text NOT NULL, `clicks` int(11) DEFAULT 0, `views` int(11) DEFAULT 0, `published_at` datetime NOT NULL, `is_active` tinyint(1) DEFAULT 0, `site_id` int(11) NOT NULL, `language_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8
[1m[36m (10.0ms)[0m [1mCREATE INDEX `index_contents_on_site_id_and_language_id_and_is_active` ON `contents` (`site_id`, `language_id`, `is_active`)[0m
[1m[35m (10.0ms)[0m CREATE INDEX `index_contents_on_user_id` ON `contents` (`user_id`)
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140313225260')[0m
Migrating to CreateLanguage (20140313225261)
[1m[35m (2.0ms)[0m CREATE TABLE `languages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `iso_639_1` varchar(255)) ENGINE=InnoDB DEFAULT CHARSET=utf8
[1m[36m (19.0ms)[0m [1mCREATE UNIQUE INDEX `index_languages_on_iso_639_1` ON `languages` (`iso_639_1`)[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140313225261')
Migrating to CreateMenu (20140313225262)
[1m[36m (10.0ms)[0m [1mCREATE TABLE `menus` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `published` tinyint(1), `default_menu_item_id` int(11), `site_id` int(11), `language_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8[0m
[1m[35m (12.0ms)[0m CREATE UNIQUE INDEX `index_menus_on_site_id_and_language_id` ON `menus` (`site_id`, `language_id`)
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140313225262')[0m
Migrating to CreateMenuItems (20140313225263)
[1m[35m (4.0ms)[0m CREATE TABLE `menu_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `menu_id` int(11), `title` varchar(255), `published` tinyint(1), `target_type` varchar(255), `target_data` text, `parent_id` int(11), `position` int(11), `full_path` varchar(255)) ENGINE=InnoDB DEFAULT CHARSET=utf8
[1m[36m (18.0ms)[0m [1mCREATE INDEX `index_menu_items_on_menu_id_and_full_path` ON `menu_items` (`menu_id`, `full_path`)[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140313225263')
Migrating to CreateSites (20140313225264)
[1m[36m (4.0ms)[0m [1mCREATE TABLE `sites` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `host` varchar(255), `is_active` tinyint(1), `is_default` tinyint(1), `tracking_code` text, `description` text, `template` varchar(255), `user_signup_allowed` tinyint(1) DEFAULT 0, `default_language_id` int(11), `redirect_to_id` int(11)) ENGINE=InnoDB DEFAULT CHARSET=utf8[0m
[1m[35m (9.0ms)[0m CREATE UNIQUE INDEX `index_sites_on_host` ON `sites` (`host`)
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140313225264')[0m
Migrating to CreateUser (20140313225265)
[1m[35m (14.0ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `admin_layout` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB DEFAULT CHARSET=utf8
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140313225265')[0m
Migrating to CreateOdaniaTags (20140323201042)
[1m[35m (2.0ms)[0m CREATE TABLE `tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `site_id` int(11) NOT NULL, `count` int(11) DEFAULT 0) ENGINE=InnoDB DEFAULT CHARSET=utf8
[1m[36m (11.0ms)[0m [1mCREATE UNIQUE INDEX `index_tags_on_site_id_and_name` ON `tags` (`site_id`, `name`)[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140323201042')
Migrating to CreateOdaniaTagXrefs (20140323201249)
[1m[36m (3.0ms)[0m [1mCREATE TABLE `tag_xrefs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `tag_id` int(11), `ref_type` varchar(255), `ref_id` int(11), `context` varchar(128)) ENGINE=InnoDB DEFAULT CHARSET=utf8[0m
[1m[35m (17.0ms)[0m CREATE INDEX `index_tag_xrefs_on_tag_id_and_context` ON `tag_xrefs` (`tag_id`, `context`)
[1m[36m (10.0ms)[0m [1mCREATE INDEX `index_tag_xrefs_on_ref_type_and_ref_id_and_context` ON `tag_xrefs` (`ref_type`, `ref_id`, `context`)[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140323201249')
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (7.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (1, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (6.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short1' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short1', 'Language1')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:39', 'User1', '2014-04-06 10:22:39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 1', 'Site Long Text 1', 'Site Short Text 1', 1, '2014-04-06 10:22:39', 1, 2, '2014-02-12 21:54:11', 1, 'Site 1', '2014-04-06 10:22:39', 1, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short2' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short2', 'Language2')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 1 AND `menus`.`language_id` = 1) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:39', 1, 1, 1, 'MyString', '2014-04-06 10:22:39')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 1 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title1', 1, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title1')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 1 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title2', 1, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title2')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 1 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title3', 1, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title3')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 1 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title4', 1, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title4')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:22:39 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (6.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 1 AND `menus`.`id` = 1 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`name` = 'Admin' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:39', 'Admin', '2014-04-06 10:22:39')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('ContentBody', 'ContentBody', 'Short', '2014-04-06 10:22:39', 1, 3, '2014-04-06 10:22:39', 1, 'Test Title', '2014-04-06 10:22:39', 2)
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 52ms (ActiveRecord: 12.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `contents`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (3.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (4, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short3', 'Language3')[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:39', 'User2', '2014-04-06 10:22:39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 2', 'Site Long Text 2', 'Site Short Text 2', 1, '2014-04-06 10:22:39', 1, 5, '2014-02-12 21:54:11', 2, 'Site 2', '2014-04-06 10:22:39', 3, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short4', 'Language4')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 2 AND `menus`.`language_id` = 4) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:39', 4, 1, 2, 'MyString', '2014-04-06 10:22:39')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 2 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title5', 2, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title5')[0m
[1m[35mOdania::MenuItem Load (4.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 2 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title6', 2, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title6')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 2 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title7', 2, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title7')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 2 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title8', 2, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title8')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"3", "menu_id"=>"2"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 2 AND `menus`.`id` = 2 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 3 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`ref_id` = 3 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM `contents` WHERE `contents`.`id` = 3[0m
Redirected to http://test.host/admin/odania/menus/2/contents
Completed 302 Found in 33ms (ActiveRecord: 6.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (7, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short5' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short5', 'Language5')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:39', 'User3', '2014-04-06 10:22:39')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 3', 'Site Long Text 3', 'Site Short Text 3', 1, '2014-04-06 10:22:39', 1, 8, '2014-02-12 21:54:11', 3, 'Site 3', '2014-04-06 10:22:39', 4, 1)[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short6' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short6', 'Language6')
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 3 AND `menus`.`language_id` = 7) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:39', 7, 1, 3, 'MyString', '2014-04-06 10:22:39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 3 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title9', 3, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title9')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 3 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title10', 3, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 3 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title11', 3, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title11')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 3 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title12', 3, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title12')
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"4", "menu_id"=>"3"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 3 AND `menus`.`id` = 3 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 4 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (39.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 8810ms (Views: 8794.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (10, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short7', 'Language7')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:48', 'User4', '2014-04-06 10:22:48')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 4', 'Site Long Text 4', 'Site Short Text 4', 1, '2014-04-06 10:22:48', 1, 11, '2014-02-12 21:54:11', 4, 'Site 4', '2014-04-06 10:22:48', 5, 1)[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short8', 'Language8')
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 4 AND `menus`.`language_id` = 10) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:48', 10, 1, 4, 'MyString', '2014-04-06 10:22:48')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 4 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title13', 4, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 4 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title14', 4, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 4 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title15', 4, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title15')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 4 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title16', 4, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title16')
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"4"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 4 AND `menus`.`id` = 4 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 10 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (20.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 43ms (Views: 29.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (20.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (13, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short9' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short9', 'Language9')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:49', 'User5', '2014-04-06 10:22:49')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 5', 'Site Long Text 5', 'Site Short Text 5', 1, '2014-04-06 10:22:49', 1, 14, '2014-02-12 21:54:11', 5, 'Site 5', '2014-04-06 10:22:49', 6, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short10', 'Language10')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 5 AND `menus`.`language_id` = 13) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:49', 13, 1, 5, 'MyString', '2014-04-06 10:22:49')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 5 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title17', 5, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title17')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 5 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title18', 5, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title18')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 5 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title19', 5, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title19')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 5 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title20', 5, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title20')
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"14"}, "id"=>"6", "menu_id"=>"5"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 5 AND `menus`.`id` = 5 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 6 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `title` = 'Test Title', `body` = 'ContentBody', `body_short` = 'Short', `body_filtered` = 'ContentBody', `updated_at` = '2014-04-06 10:22:49' WHERE `contents`.`id` = 6[0m
Redirected to http://test.host/admin/odania/menus/5/contents
Completed 302 Found in 26ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (16, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short11' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short11', 'Language11')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:49', 'User6', '2014-04-06 10:22:49')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 6', 'Site Long Text 6', 'Site Short Text 6', 1, '2014-04-06 10:22:49', 1, 17, '2014-02-12 21:54:11', 6, 'Site 6', '2014-04-06 10:22:49', 7, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short12', 'Language12')[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 6 AND `menus`.`language_id` = 16) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:49', 16, 1, 6, 'MyString', '2014-04-06 10:22:49')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 6 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title21', 6, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title21')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 6 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title22', 6, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title22')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 6 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title23', 6, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title23')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 6 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title24', 6, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title24')[0m
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"6"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 6 AND `menus`.`id` = 6 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 16 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (5.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 6 AND `contents`.`language_id` = 16 ORDER BY title ASC
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 38ms (Views: 19.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (3.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (4.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (19, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short13' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short13', 'Language13')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:49', 'User7', '2014-04-06 10:22:49')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 7', 'Site Long Text 7', 'Site Short Text 7', 1, '2014-04-06 10:22:49', 1, 20, '2014-02-12 21:54:11', 7, 'Site 7', '2014-04-06 10:22:49', 8, 1)
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short14' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short14', 'Language14')[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 7 AND `menus`.`language_id` = 19) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:49', 19, 1, 7, 'MyString', '2014-04-06 10:22:49')[0m
[1m[35mOdania::MenuItem Load (6.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 7 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title25', 7, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title25')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 7 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title26', 7, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title26')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 7 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title27', 7, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 7 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title28', 7, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title28')[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"7"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 7 AND `menus`.`id` = 7 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 0 ORDER BY `contents`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/7/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 2.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (22, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short15' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short15', 'Language15')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:49', 'User8', '2014-04-06 10:22:49')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 8', 'Site Long Text 8', 'Site Short Text 8', 1, '2014-04-06 10:22:49', 1, 23, '2014-02-12 21:54:11', 8, 'Site 8', '2014-04-06 10:22:49', 9, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short16' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short16', 'Language16')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 8 AND `menus`.`language_id` = 22) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:49', 22, 1, 8, 'MyString', '2014-04-06 10:22:49')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 8 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title29', 8, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title29')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 8 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title30', 8, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 8 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title31', 8, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 8 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title32', 8, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title32')
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"9", "menu_id"=>"8"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 8 AND `menus`.`id` = 8 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 9 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 23 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 23ms (Views: 13.0ms | ActiveRecord: 3.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (25, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short17' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short17', 'Language17')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 9 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 9 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 9 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (4.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'en' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('en', 'Engilish')
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 23ms (ActiveRecord: 10.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `languages`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (4.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (28, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short18' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short18', 'Language18')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"29"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 10 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 10 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 10 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 29 ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `languages` WHERE `languages`.`id` = 29[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 15ms (ActiveRecord: 5.0ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `languages`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (30, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short19' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short19', 'Language19')
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"31"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 11 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 11 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 11 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 31 ORDER BY `languages`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (7.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 31ms (Views: 18.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (32, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short20' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short20', 'Language20')[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 12 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 12 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 12 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (5.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 35ms (Views: 20.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (34, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short21', 'Language21')[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"35"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 13 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 13 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 13 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 35 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'Engilish' AND `languages`.`id` != 35) LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'en' AND `languages`.`id` != 35) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `languages` SET `name` = 'Engilish', `iso_639_1` = 'en' WHERE `languages`.`id` = 35
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 18ms (ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (36, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short22' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short22', 'Language22')
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 14 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 14 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 14 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages`
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 39ms (Views: 26.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (38, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short23' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short23', 'Language23')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 15 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 15 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 15 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 0 ORDER BY `languages`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (40, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short24' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short24', 'Language24')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"41"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 16 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 16 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 16 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 41 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 22ms (Views: 10.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (42, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short25' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short25', 'Language25')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User9', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 9', 'Site Long Text 9', 'Site Short Text 9', 1, '2014-04-06 10:22:50', 1, 43, '2014-02-12 21:54:11', 17, 'Site 9', '2014-04-06 10:22:50', 10, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 17 AND `menus`.`language_id` = 42) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:50', 42, 1, 17, 'MyString', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 9 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title33', 9, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 9 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title34', 9, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title34')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 9 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title35', 9, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title35')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 9 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title36', 9, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title36')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 42) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 42) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 1' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (42, 'Site Description 1', 'www.domain1.com', 1, 0, 'Site 1', 'TRACKING CODE 1')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short26' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short26', 'Language26')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User10', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 10', 'Site Long Text 10', 'Site Short Text 10', 1, '2014-04-06 10:22:50', 1, 44, '2014-02-12 21:54:11', 18, 'Site 10', '2014-04-06 10:22:50', 11, 1)[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menu_items`
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"11"}, "menu_id"=>"9"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 17 AND `menus`.`id` = 9 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 11 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` IS NULL
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 9 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 9 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('test-title', 9, 5, 1, '--- !ruby/hash:ActionController::Parameters\nid: \'11\'\n', 'CONTENT', 'Test Title')
Redirected to http://test.host/admin/odania/menus/9/menu_items
Completed 302 Found in 31ms (ActiveRecord: 7.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (45, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short27' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short27', 'Language27')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User11', '2014-04-06 10:22:50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 11', 'Site Long Text 11', 'Site Short Text 11', 1, '2014-04-06 10:22:50', 1, 46, '2014-02-12 21:54:11', 19, 'Site 11', '2014-04-06 10:22:50', 12, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 19 AND `menus`.`language_id` = 45) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:50', 45, 1, 19, 'MyString', '2014-04-06 10:22:50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 10 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title37', 10, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title37')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 10 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title38', 10, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title38')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 10 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title39', 10, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 10 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title40', 10, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title40')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 10 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"38", "menu_id"=>"10"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 19 AND `menus`.`id` = 10 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 10 AND `menu_items`.`id` = 38 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `menu_items` WHERE `menu_items`.`id` = 38
Redirected to http://test.host/admin/odania/menus/10/menu_items
Completed 302 Found in 11ms (ActiveRecord: 4.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (47, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short28' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short28', 'Language28')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User12', '2014-04-06 10:22:50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 12', 'Site Long Text 12', 'Site Short Text 12', 1, '2014-04-06 10:22:50', 1, 48, '2014-02-12 21:54:11', 20, 'Site 12', '2014-04-06 10:22:50', 13, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 20 AND `menus`.`language_id` = 47) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:50', 47, 1, 20, 'MyString', '2014-04-06 10:22:50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 11 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title41', 11, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 11 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title42', 11, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title42')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 11 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title43', 11, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 11 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title44', 11, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 11 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"42", "menu_id"=>"11"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 20 AND `menus`.`id` = 11 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 11 AND `menu_items`.`id` = 42 ORDER BY `menu_items`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (1.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (26.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 47ms (Views: 36.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (49, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short29' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short29', 'Language29')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User13', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 13', 'Site Long Text 13', 'Site Short Text 13', 1, '2014-04-06 10:22:50', 1, 50, '2014-02-12 21:54:11', 21, 'Site 13', '2014-04-06 10:22:50', 14, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 21 AND `menus`.`language_id` = 49) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:50', 49, 1, 21, 'MyString', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 12 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title45', 12, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title45')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 12 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title46', 12, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 12 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title47', 12, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 12 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title48', 12, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title48')[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"12"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 21 AND `menus`.`id` = 12 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 49 LIMIT 1
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 21 AND `contents`.`language_id` = 49 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (5.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (18.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 35ms (Views: 26.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (51, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short30' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short30', 'Language30')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User14', '2014-04-06 10:22:50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 14', 'Site Long Text 14', 'Site Short Text 14', 1, '2014-04-06 10:22:50', 1, 52, '2014-02-12 21:54:11', 22, 'Site 14', '2014-04-06 10:22:50', 15, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 22 AND `menus`.`language_id` = 51) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:50', 51, 1, 22, 'MyString', '2014-04-06 10:22:50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title49', 13, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title49')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title50', 13, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title51', 13, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title51')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title52', 13, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"50", "menu_id"=>"13"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 22 AND `menus`.`id` = 13 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 AND `menu_items`.`id` = 50 ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 13 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 13 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_data` = '--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n', `title` = 'Test Title', `full_path` = 'test-title', `position` = 5 WHERE `menu_items`.`id` = 50[0m
Redirected to http://test.host/admin/odania/menus/13/menu_items
Completed 302 Found in 25ms (ActiveRecord: 7.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 50 LIMIT 1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (53, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short31', 'Language31')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:50', 'User15', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 15', 'Site Long Text 15', 'Site Short Text 15', 1, '2014-04-06 10:22:50', 1, 54, '2014-02-12 21:54:11', 23, 'Site 15', '2014-04-06 10:22:50', 16, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 23 AND `menus`.`language_id` = 53) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:50', 53, 1, 23, 'MyString', '2014-04-06 10:22:50')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 14 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title53', 14, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title53')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 14 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title54', 14, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 14 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title55', 14, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 14 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title56', 14, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title56')[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"14"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 23 AND `menus`.`id` = 14 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 14 ORDER BY parent_id ASC[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 39ms (Views: 28.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (55, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short32', 'Language32')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User16', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 16', 'Site Long Text 16', 'Site Short Text 16', 1, '2014-04-06 10:22:51', 1, 56, '2014-02-12 21:54:11', 24, 'Site 16', '2014-04-06 10:22:51', 17, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 24 AND `menus`.`language_id` = 55) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 55, 1, 24, 'MyString', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 15 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title57', 15, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title57')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 15 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title58', 15, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title58')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 15 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title59', 15, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title59')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 15 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title60', 15, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title60')[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"15"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 24 AND `menus`.`id` = 15 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 15 AND `menu_items`.`id` = 0 ORDER BY `menu_items`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/15/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (57, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short33' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short33', 'Language33')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User17', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 17', 'Site Long Text 17', 'Site Short Text 17', 1, '2014-04-06 10:22:51', 1, 58, '2014-02-12 21:54:11', 25, 'Site 17', '2014-04-06 10:22:51', 18, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 25 AND `menus`.`language_id` = 57) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 57, 1, 25, 'MyString', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 16 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title61', 16, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title61')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 16 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title62', 16, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title62')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 16 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title63', 16, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title63')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 16 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title64', 16, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title64')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 16 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"62", "menu_id"=>"16"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 25 AND `menus`.`id` = 16 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 16 AND `menu_items`.`id` = 62 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 25ms (Views: 15.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (59, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short34' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short34', 'Language34')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User18', '2014-04-06 10:22:51')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 18', 'Site Long Text 18', 'Site Short Text 18', 1, '2014-04-06 10:22:51', 1, 60, '2014-02-12 21:54:11', 26, 'Site 18', '2014-04-06 10:22:51', 19, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 26 AND `menus`.`language_id` = 59) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 59, 1, 26, 'MyString', '2014-04-06 10:22:51')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 17 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title65', 17, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title65')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 17 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title66', 17, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title66')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 17 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title67', 17, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title67')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 17 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title68', 17, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title68')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 26 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 26 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 26 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` IS NULL AND `menus`.`language_id` IS NULL) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `published`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 1, 'Test Title', '2014-04-06 10:22:51')[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 15ms (ActiveRecord: 4.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (61, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short35' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short35', 'Language35')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User19', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 19', 'Site Long Text 19', 'Site Short Text 19', 1, '2014-04-06 10:22:51', 1, 62, '2014-02-12 21:54:11', 27, 'Site 19', '2014-04-06 10:22:51', 20, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 27 AND `menus`.`language_id` = 61) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 61, 1, 27, 'MyString', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 19 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title69', 19, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title69')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 19 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title70', 19, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title70')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 19 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title71', 19, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title71')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 19 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title72', 19, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title72')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"19"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 27 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 27 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 27 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 19 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `menus` WHERE `menus`.`id` = 19
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 14ms (ActiveRecord: 2.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (63, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short36' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short36', 'Language36')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User20', '2014-04-06 10:22:51')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 20', 'Site Long Text 20', 'Site Short Text 20', 1, '2014-04-06 10:22:51', 1, 64, '2014-02-12 21:54:11', 28, 'Site 20', '2014-04-06 10:22:51', 21, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 28 AND `menus`.`language_id` = 63) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 63, 1, 28, 'MyString', '2014-04-06 10:22:51')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 20 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title73', 20, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title73')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 20 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title74', 20, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title74')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 20 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title75', 20, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title75')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 20 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title76', 20, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title76')
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"20"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 28 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 28 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 28 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 20 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (12.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 37ms (Views: 24.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (65, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short37' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short37', 'Language37')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User21', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 21', 'Site Long Text 21', 'Site Short Text 21', 1, '2014-04-06 10:22:51', 1, 66, '2014-02-12 21:54:11', 29, 'Site 21', '2014-04-06 10:22:51', 22, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 29 AND `menus`.`language_id` = 65) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 65, 1, 29, 'MyString', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 21 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title77', 21, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title77')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 21 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title78', 21, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title78')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 21 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title79', 21, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title79')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 21 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title80', 21, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title80')[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 29 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 29 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 29 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (12.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 33ms (Views: 20.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (67, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short38' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short38', 'Language38')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User22', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 22', 'Site Long Text 22', 'Site Short Text 22', 1, '2014-04-06 10:22:51', 1, 68, '2014-02-12 21:54:11', 30, 'Site 22', '2014-04-06 10:22:51', 23, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 30 AND `menus`.`language_id` = 67) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 67, 1, 30, 'MyString', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 22 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title81', 22, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title81')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 22 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title82', 22, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title82')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 22 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title83', 22, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title83')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 22 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title84', 22, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title84')[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"22"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 30 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 30 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 30 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 22 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 30 AND `menus`.`id` != 22 AND `menus`.`language_id` = 67) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menus` SET `title` = 'Test Title', `updated_at` = '2014-04-06 10:22:51' WHERE `menus`.`id` = 22
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 14ms (ActiveRecord: 4.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (69, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short39' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short39', 'Language39')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:51', 'User23', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 23', 'Site Long Text 23', 'Site Short Text 23', 1, '2014-04-06 10:22:51', 1, 70, '2014-02-12 21:54:11', 31, 'Site 23', '2014-04-06 10:22:51', 24, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 31 AND `menus`.`language_id` = 69) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:51', 69, 1, 31, 'MyString', '2014-04-06 10:22:51')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 23 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title85', 23, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title85')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 23 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title86', 23, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title86')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 23 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title87', 23, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title87')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 23 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title88', 23, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title88')[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 31 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 31 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 31 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 31 ORDER BY title ASC
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 31 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 69 LIMIT 1
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 31ms (Views: 17.0ms | ActiveRecord: 8.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (8.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (71, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short40' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short40', 'Language40')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User24', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 24', 'Site Long Text 24', 'Site Short Text 24', 1, '2014-04-06 10:22:52', 1, 72, '2014-02-12 21:54:11', 32, 'Site 24', '2014-04-06 10:22:52', 25, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 32 AND `menus`.`language_id` = 71) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:52', 71, 1, 32, 'MyString', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 24 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title89', 24, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title89')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 24 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title90', 24, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title90')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 24 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title91', 24, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title91')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 24 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title92', 24, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title92')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 32 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 32 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 32 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 0 ORDER BY `menus`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (73, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short41' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short41', 'Language41')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User25', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 25', 'Site Long Text 25', 'Site Short Text 25', 1, '2014-04-06 10:22:52', 1, 74, '2014-02-12 21:54:11', 33, 'Site 25', '2014-04-06 10:22:52', 26, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 33 AND `menus`.`language_id` = 73) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:52', 73, 1, 33, 'MyString', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 25 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title93', 25, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title93')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 25 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title94', 25, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title94')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 25 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title95', 25, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title95')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 25 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title96', 25, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title96')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"25"}
[1m[36mOdania::Site Load (6.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 33 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 33 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 33 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 25 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 33 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 73 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 46ms (Views: 23.0ms | ActiveRecord: 13.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mSavepoint (4.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (7.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (75, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short42' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short42', 'Language42')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User26', '2014-04-06 10:22:52')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 26', 'Site Long Text 26', 'Site Short Text 26', 1, '2014-04-06 10:22:52', 1, 76, '2014-02-12 21:54:11', 34, 'Site 26', '2014-04-06 10:22:52', 27, 1)[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `sites`
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"75"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 34 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 34 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 34 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `name`, `template`, `tracking_code`) VALUES (75, 'description is here', 'www.test.de', 1, 'Page1', 'ASDASD', 'TRACK')
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 18ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (77, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short43' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short43', 'Language43')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User27', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 27', 'Site Long Text 27', 'Site Short Text 27', 1, '2014-04-06 10:22:52', 1, 78, '2014-02-12 21:54:11', 36, 'Site 27', '2014-04-06 10:22:52', 28, 1)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"36"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 36 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 36 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 36 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 36 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 36
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 13ms (ActiveRecord: 5.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (79, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short44' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short44', 'Language44')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User28', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 28', 'Site Long Text 28', 'Site Short Text 28', 1, '2014-04-06 10:22:52', 1, 80, '2014-02-12 21:54:11', 37, 'Site 28', '2014-04-06 10:22:52', 29, 1)
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 37 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 37 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 37 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (19.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 47ms (Views: 30.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (81, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short45' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short45', 'Language45')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User29', '2014-04-06 10:22:52')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 29', 'Site Long Text 29', 'Site Short Text 29', 1, '2014-04-06 10:22:52', 1, 82, '2014-02-12 21:54:11', 38, 'Site 29', '2014-04-06 10:22:52', 30, 1)[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"38"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 38 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 38 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 38 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 38 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (15.0ms)
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 39ms (Views: 25.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (83, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short46' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short46', 'Language46')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User30', '2014-04-06 10:22:52')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 30', 'Site Long Text 30', 'Site Short Text 30', 1, '2014-04-06 10:22:52', 1, 84, '2014-02-12 21:54:11', 39, 'Site 30', '2014-04-06 10:22:52', 31, 1)[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 39 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 39 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 39 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (14.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 30ms (Views: 19.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (85, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short47' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short47', 'Language47')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User31', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 31', 'Site Long Text 31', 'Site Short Text 31', 1, '2014-04-06 10:22:52', 1, 86, '2014-02-12 21:54:11', 40, 'Site 31', '2014-04-06 10:22:52', 32, 1)
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"40"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 40 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 40 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 40 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 40 ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE (`sites`.`host` = BINARY 'www.test.de' AND `sites`.`id` != 40) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE (`sites`.`name` = BINARY 'Page1' AND `sites`.`id` != 40) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `sites` SET `name` = 'Page1', `host` = 'www.test.de', `tracking_code` = 'TRACK', `description` = 'description is here' WHERE `sites`.`id` = 40[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 17ms (ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (87, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short48' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short48', 'Language48')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User32', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 32', 'Site Long Text 32', 'Site Short Text 32', 1, '2014-04-06 10:22:52', 1, 88, '2014-02-12 21:54:11', 41, 'Site 32', '2014-04-06 10:22:52', 33, 1)
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 41 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 41 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 41 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites`
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 87 LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 41
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 3.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (89, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short49' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short49', 'Language49')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User33', '2014-04-06 10:22:52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 33', 'Site Long Text 33', 'Site Short Text 33', 1, '2014-04-06 10:22:52', 1, 90, '2014-02-12 21:54:11', 42, 'Site 33', '2014-04-06 10:22:52', 34, 1)
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 42 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 42 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 42 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 0 ORDER BY `sites`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (91, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short50' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short50', 'Language50')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:52', 'User34', '2014-04-06 10:22:52')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 34', 'Site Long Text 34', 'Site Short Text 34', 1, '2014-04-06 10:22:52', 1, 92, '2014-02-12 21:54:11', 43, 'Site 34', '2014-04-06 10:22:52', 35, 1)[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"43"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 43 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 43 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 43 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 43 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 91 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 22ms (Views: 11.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (93, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:22:52 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (94, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 94) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 94) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 2' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (94, 'Site Description 2', 'www.domain2.com', 1, 0, 'Site 2', 'TRACKING CODE 2')[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain2.com' ORDER BY `sites`.`id` ASC LIMIT 1
Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (95, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 95) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 95) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (95, 'Site Description 3', 'www.domain3.com', 1, 0, 'Site 3', 'TRACKING CODE 3')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 48 AND `menus`.`language_id` = 95) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:53', 95, 1, 48, 'MyString', '2014-04-06 10:22:53')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 26 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title97', 26, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title97')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain3.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'en' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 95 LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 48 AND `menus`.`language_id` = 95 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 95 LIMIT 1 [["id", 95]]
Completed 200 OK in 12ms (Views: 0.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (96, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (5.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (97, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites`[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 50
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 7ms (Views: 0.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (98, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 98) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 98) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (98, 'Site Description 4', 'www.domain4.com', 1, 0, 'Site 4', 'TRACKING CODE 4')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 98) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 98) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'RedirectSite' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `host`, `is_active`, `name`, `redirect_to_id`) VALUES (98, 'redirect.host', 1, 'RedirectSite', 52)[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'redirect.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 52 LIMIT 1[0m
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (99, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 54 AND `menus`.`language_id` = 99) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:53', 99, 1, 54, 'MyString', '2014-04-06 10:22:53')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 27 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title98', 27, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title98')
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 54 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 99 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 27 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 27 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 99 LIMIT 1[0m [["id", 99]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 27 AND `menu_items`.`parent_id` = 99 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (13.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 54[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 99 LIMIT 1 [["id", 99]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (280.0ms)
Completed 200 OK in 427ms (Views: 421.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (100, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:22:53 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (101, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short51', 'Language51')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:53', 'User35', '2014-04-06 10:22:53')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 35', 'Site Long Text 35', 'Site Short Text 35', 1, '2014-04-06 10:22:53', 1, 102, '2014-02-12 21:54:11', 56, 'Site 35', '2014-04-06 10:22:53', 36, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 56 AND `menus`.`language_id` = 101) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:53', 101, 1, 56, 'MyString', '2014-04-06 10:22:53')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 28 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title99', 28, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title99')
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (103, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short52', 'Language52')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:53', 'User36', '2014-04-06 10:22:53')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 36', 'Site Long Text 36', 'Site Short Text 36', 1, '2014-04-06 10:22:53', 1, 104, '2014-02-12 21:54:11', 57, 'Site 36', '2014-04-06 10:22:53', 37, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 57 AND `menus`.`language_id` = 103) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:53', 103, 1, 57, 'MyString', '2014-04-06 10:22:53')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 29 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title100', 29, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title100')[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:22:54 +0200
[1m[35mSavepoint (22.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (105, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short53' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short53', 'Language53')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User37', '2014-04-06 10:22:54')
[1m[36m (2.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (8.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:22:54', 1, 106, '2014-04-06 10:22:54', 58, 'asd123', '2014-04-06 10:22:54', 38)[0m
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:22:54', 1, 106, '2014-04-06 10:22:54', 58, 'asd123', '2014-04-06 10:22:54', 38)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (107, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short54' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short54', 'Language54')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User38', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:22:54', 1, 108, '2014-04-06 10:22:54', 59, 'asd123', '2014-04-06 10:22:54', 39)
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:22:54', 1, 108, '2014-04-06 10:22:54', 59, 'asd123', '2014-04-06 10:22:54', 39)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (109, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short55' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short55', 'Language55')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User39', '2014-04-06 10:22:54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:22:54', 1, 110, '2014-04-06 10:22:54', 60, 'asd123', '2014-04-06 10:22:54', 40)[0m
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:22:54', 1, 110, '2014-04-06 10:22:54', 60, 'asd123', '2014-04-06 10:22:54', 40)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (111, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short56', 'Language56')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User40', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 37', 'Site Long Text 37', 'Site Short Text 37', 1, '2014-04-06 10:22:54', 1, 112, '2014-02-12 21:54:11', 61, 'Site 37', '2014-04-06 10:22:54', 41, 1)
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (113, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short57', 'Language57')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User41', '2014-04-06 10:22:54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 38', 'Site Long Text 38', 'Site Short Text 38', 1, '2014-04-06 10:22:54', 1, 114, '2014-02-12 21:54:11', 62, 'Site 38', '2014-04-06 10:22:54', 42, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 62 AND `menus`.`language_id` = 113) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:54', 113, 1, 62, 'MyString', '2014-04-06 10:22:54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 30 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title101', 30, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title101')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 113) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 113) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 5' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (113, 'Site Description 5', 'www.domain5.com', 1, 0, 'Site 5', 'TRACKING CODE 5')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain5.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 63 AND `menus`.`language_id` = 113 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (115, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short58' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short58', 'Language58')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User42', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 39', 'Site Long Text 39', 'Site Short Text 39', 1, '2014-04-06 10:22:54', 1, 116, '2014-02-12 21:54:11', 64, 'Site 39', '2014-04-06 10:22:54', 43, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 64 AND `menus`.`language_id` = 115) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:54', 115, 1, 64, 'MyString', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 31 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title102', 31, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title102')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 31 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 31 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 31 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_data` = '---\nurl: http://www.planetech.de\n', `position` = 2 WHERE `menu_items`.`id` = 103
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 64 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 115 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 31 LIMIT 1
Redirected to http://www.planetech.de
Completed 302 Found in 14ms (ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (117, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short59' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short59', 'Language59')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User43', '2014-04-06 10:22:54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 40', 'Site Long Text 40', 'Site Short Text 40', 1, '2014-04-06 10:22:54', 1, 118, '2014-02-12 21:54:11', 65, 'Site 40', '2014-04-06 10:22:54', 44, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 65 AND `menus`.`language_id` = 117) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:54', 117, 1, 65, 'MyString', '2014-04-06 10:22:54')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 32 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title103', 32, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title103')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 65 AND `menus`.`language_id` = 117 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 117 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 65
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 117 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` IS NULL ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 117 LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 65 AND `menus`.`language_id` = 117 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 117 LIMIT 1[0m
Redirected to http://test.host/de
Completed 302 Found in 19ms (ActiveRecord: 8.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (119, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short60', 'Language60')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User44', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (6.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 41', 'Site Long Text 41', 'Site Short Text 41', 1, '2014-04-06 10:22:54', 1, 120, '2014-02-12 21:54:11', 66, 'Site 41', '2014-04-06 10:22:54', 45, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 66 AND `menus`.`language_id` = 119) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:54', 119, 1, 66, 'MyString', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title104', 33, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title104')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short61', 'Language61')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User45', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 42', 'Site Long Text 42', 'Site Short Text 42', 1, '2014-04-06 10:22:54', 1, 121, '2014-02-12 21:54:11', 66, 'Site 42', '2014-04-06 10:22:54', 46, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short62' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short62', 'Language62')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User46', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 43', 'Site Long Text 43', 'Site Short Text 43', 1, '2014-04-06 10:22:54', 1, 122, '2014-02-12 21:54:11', 66, 'Site 43', '2014-04-06 10:22:54', 47, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title105', 33, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title105')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 106
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 66 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 119 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`full_path` = 'title105' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 33 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (3.0ms)
[1m[35mOdania::Content Load (0.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 66 AND `contents`.`language_id` = 119 ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (8.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 33 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 119 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`parent_id` = 105 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 33 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 119 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 33 AND `menu_items`.`parent_id` = 106 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (16.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 66
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 119 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 53ms (Views: 34.0ms | ActiveRecord: 9.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (123, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short63', 'Language63')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User47', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 44', 'Site Long Text 44', 'Site Short Text 44', 1, '2014-04-06 10:22:54', 1, 124, '2014-02-12 21:54:11', 67, 'Site 44', '2014-04-06 10:22:54', 48, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 67 AND `menus`.`language_id` = 123) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:54', 123, 1, 67, 'MyString', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title106', 34, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title106')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short64', 'Language64')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User48', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 45', 'Site Long Text 45', 'Site Short Text 45', 1, '2014-04-06 10:22:54', 1, 125, '2014-02-12 21:54:11', 67, 'Site 45', '2014-04-06 10:22:54', 49, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short65', 'Language65')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User49', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 46', 'Site Long Text 46', 'Site Short Text 46', 1, '2014-04-06 10:22:54', 1, 126, '2014-02-12 21:54:11', 67, 'Site 46', '2014-04-06 10:22:54', 50, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title107', 34, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title107')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 108
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/46-site-45"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 67 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 123 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`full_path` = 'title107/46-site-45' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`full_path` = 'title107' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 67 AND `contents`.`id` = 46 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 46 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (26.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (33.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 34 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 123 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`parent_id` = 107 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
[1m[36mOdania::Menu Load (5.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 34 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 123 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 34 AND `menu_items`.`parent_id` = 108 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (24.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (25.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 67
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 123 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 89ms (Views: 57.0ms | ActiveRecord: 19.0ms)
[1m[35mSavepoint (5.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (127, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short66', 'Language66')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:54', 'User50', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 47', 'Site Long Text 47', 'Site Short Text 47', 1, '2014-04-06 10:22:54', 1, 128, '2014-02-12 21:54:11', 68, 'Site 47', '2014-04-06 10:22:54', 51, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 68 AND `menus`.`language_id` = 127) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:54', 127, 1, 68, 'MyString', '2014-04-06 10:22:54')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 35 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title108', 35, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title108')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short67', 'Language67')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:55', 'User51', '2014-04-06 10:22:55')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 48', 'Site Long Text 48', 'Site Short Text 48', 1, '2014-04-06 10:22:55', 1, 129, '2014-02-12 21:54:11', 68, 'Site 48', '2014-04-06 10:22:55', 52, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 35 ORDER BY `menu_items`.`id` DESC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 49 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 109[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 109, `updated_at` = '2014-04-06 10:22:55' WHERE `contents`.`id` = 49
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 35 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 35 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 49\n', `position` = 2 WHERE `menu_items`.`id` = 109[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 68 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 127 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 35 AND `menu_items`.`full_path` = 'title108' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 68 AND `contents`.`id` = 49 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 49 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (10.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 35 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 35 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 127 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 35 AND `menu_items`.`parent_id` = 109 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (11.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 68[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 127 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 46ms (Views: 24.0ms | ActiveRecord: 12.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (130, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short68' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short68', 'Language68')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:55', 'User52', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 49', 'Site Long Text 49', 'Site Short Text 49', 1, '2014-04-06 10:22:55', 1, 131, '2014-02-12 21:54:11', 69, 'Site 49', '2014-04-06 10:22:55', 53, 1)[0m
[1m[35mOdania::Menu Exists (4.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 69 AND `menus`.`language_id` = 130) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:55', 130, 1, 69, 'MyString', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title109', 36, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title109')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short69' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short69', 'Language69')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:55', 'User53', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 50', 'Site Long Text 50', 'Site Short Text 50', 1, '2014-04-06 10:22:55', 1, 132, '2014-02-12 21:54:11', 69, 'Site 50', '2014-04-06 10:22:55', 54, 1)[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 ORDER BY `menu_items`.`id` DESC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 36 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title110', 36, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title110')[0m
[1m[35mOdania::Content Load (2.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 51 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 111[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 111, `updated_at` = '2014-04-06 10:22:55' WHERE `contents`.`id` = 51
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 110 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`parent_id` = 110 ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 51\n', `parent_id` = 110, `full_path` = 'title109/title110', `position` = 1 WHERE `menu_items`.`id` = 111[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 69 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 130 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`full_path` = 'title109/title110' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 69 AND `contents`.`id` = 51 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 54 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 51 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 36 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 130 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`parent_id` = 110 ORDER BY position ASC
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 36 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 130 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 36 AND `menu_items`.`parent_id` = 111 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (15.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (16.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 69
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 130 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 52ms (Views: 29.0ms | ActiveRecord: 10.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (133, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short70' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short70', 'Language70')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:55', 'User54', '2014-04-06 10:22:55')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 51', 'Site Long Text 51', 'Site Short Text 51', 1, '2014-04-06 10:22:55', 1, 134, '2014-02-12 21:54:11', 70, 'Site 51', '2014-04-06 10:22:55', 55, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 70 AND `menus`.`language_id` = 133) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:55', 133, 1, 70, 'MyString', '2014-04-06 10:22:55')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 37 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title111', 37, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title111')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 37 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 52 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 112[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `menu_item_id` = 112, `updated_at` = '2014-04-06 10:22:55' WHERE `contents`.`id` = 52
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 37 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 37 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 52\n', `position` = 2 WHERE `menu_items`.`id` = 112[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `body` = 'This is a #ABC-Tag test', `menu_item_id` = 112, `body_filtered` = 'This is a ABC-Tag test', `updated_at` = '2014-04-06 10:22:55' WHERE `contents`.`id` = 52
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'ABC-Tag' AND `tags`.`site_id` = 70 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('ABC-Tag', 70)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 1 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 52 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 52, 'Odania::Content', 1)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 1 LIMIT 1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 70 AND `menus`.`language_id` = 133 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 133 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 70 AND `tags`.`name` = 'ABC-Tag' ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 1 LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 52 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 112 LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 37 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 133 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 37 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 37 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 133 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 37 AND `menu_items`.`parent_id` = 112 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 70[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 133 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 55ms (Views: 28.0ms | ActiveRecord: 15.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mSavepoint (3.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (135, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short71' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short71', 'Language71')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:55', 'User55', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 52', 'Site Long Text 52', 'Site Short Text 52', 1, '2014-04-06 10:22:55', 1, 136, '2014-02-12 21:54:11', 71, 'Site 52', '2014-04-06 10:22:55', 56, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 71 AND `menus`.`language_id` = 135) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:55', 135, 1, 71, 'MyString', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 38 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title112', 38, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title112')[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 71 AND `menus`.`language_id` = 135 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 135 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 71 AND `tags`.`name` = 'ABC' ORDER BY `tags`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (4.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 38 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 38 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 135 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 38 AND `menu_items`.`parent_id` = 113 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (8.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (9.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 71[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 135 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 37ms (Views: 22.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (137, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short72', 'Language72')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:22:55', 'User56', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 53', 'Site Long Text 53', 'Site Short Text 53', 1, '2014-04-06 10:22:55', 1, 138, '2014-02-12 21:54:11', 72, 'Site 53', '2014-04-06 10:22:55', 57, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 72 AND `menus`.`language_id` = 137) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:22:55', 137, 1, 72, 'MyString', '2014-04-06 10:22:55')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 39 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title113', 39, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title113')[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 72 AND `menus`.`language_id` = 137 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 137 LIMIT 1[0m
[1m[35mOdania::Tag Exists (1.0ms)[0m SELECT 1 AS one FROM `tags` WHERE `tags`.`site_id` = 72 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 39 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 39 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 137 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 39 AND `menu_items`.`parent_id` = 114 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 72[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 137 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 36ms (Views: 20.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35mSavepoint (2.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mSavepoint (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (139, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short1' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short1', 'Language1')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:06', 'User1', '2014-04-06 10:24:06')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 1', 'Site Long Text 1', 'Site Short Text 1', 1, '2014-04-06 10:24:06', 1, 140, '2014-02-12 21:54:11', 73, 'Site 1', '2014-04-06 10:24:06', 58, 1)
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short2' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short2', 'Language2')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 73 AND `menus`.`language_id` = 139) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:06', 139, 1, 73, 'MyString', '2014-04-06 10:24:06')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 40 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title1', 40, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title1')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 40 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title2', 40, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title2')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 40 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title3', 40, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title3')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 40 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title4', 40, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title4')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:24:06 +0200", "language_id"=>"141", "site_id"=>"73"}, "menu_id"=>"40"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (5.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 73 AND `menus`.`id` = 40 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`name` = 'Admin' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:06', 'Admin', '2014-04-06 10:24:06')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('ContentBody', 'ContentBody', 'Short', '2014-04-06 10:24:06', 1, 141, '2014-04-06 10:24:06', 73, 'Test Title', '2014-04-06 10:24:06', 59)
Redirected to http://test.host/admin/odania/menus/40/contents
Completed 302 Found in 50ms (ActiveRecord: 10.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `contents`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (8.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (142, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short3' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short3', 'Language3')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:06', 'User2', '2014-04-06 10:24:06')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 2', 'Site Long Text 2', 'Site Short Text 2', 1, '2014-04-06 10:24:06', 1, 143, '2014-02-12 21:54:11', 74, 'Site 2', '2014-04-06 10:24:06', 60, 1)
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short4', 'Language4')[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 74 AND `menus`.`language_id` = 142) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:07', 142, 1, 74, 'MyString', '2014-04-06 10:24:07')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 41 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title5', 41, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title5')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 41 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title6', 41, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title6')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 41 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title7', 41, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title7')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 41 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title8', 41, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title8')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"57", "menu_id"=>"41"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 74 AND `menus`.`id` = 41 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 57 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`ref_id` = 57 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM `contents` WHERE `contents`.`id` = 57[0m
Redirected to http://test.host/admin/odania/menus/41/contents
Completed 302 Found in 37ms (ActiveRecord: 11.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (4.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (3.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (145, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short5' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short5', 'Language5')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:07', 'User3', '2014-04-06 10:24:07')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 3', 'Site Long Text 3', 'Site Short Text 3', 1, '2014-04-06 10:24:07', 1, 146, '2014-02-12 21:54:11', 75, 'Site 3', '2014-04-06 10:24:07', 61, 1)[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short6' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short6', 'Language6')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 75 AND `menus`.`language_id` = 145) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:07', 145, 1, 75, 'MyString', '2014-04-06 10:24:07')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 42 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title9', 42, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title9')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 42 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title10', 42, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 42 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title11', 42, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 42 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title12', 42, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title12')
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"58", "menu_id"=>"42"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 75 AND `menus`.`id` = 42 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 58 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (41.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.0ms)
Completed 200 OK in 206ms (Views: 188.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (5.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (4.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (148, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short7', 'Language7')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:07', 'User4', '2014-04-06 10:24:07')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 4', 'Site Long Text 4', 'Site Short Text 4', 1, '2014-04-06 10:24:07', 1, 149, '2014-02-12 21:54:11', 76, 'Site 4', '2014-04-06 10:24:07', 62, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short8' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short8', 'Language8')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 76 AND `menus`.`language_id` = 148) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:07', 148, 1, 76, 'MyString', '2014-04-06 10:24:07')
[1m[36mOdania::MenuItem Load (12.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 43 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title13', 43, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 43 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title14', 43, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 43 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title15', 43, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title15')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 43 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title16', 43, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title16')
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"43"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 76 AND `menus`.`id` = 43 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 148 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (25.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 52ms (Views: 37.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (3.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (3.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (151, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short9' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short9', 'Language9')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:07', 'User5', '2014-04-06 10:24:07')[0m
[1m[35mOdania::MenuItem Load (3.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 5', 'Site Long Text 5', 'Site Short Text 5', 1, '2014-04-06 10:24:07', 1, 152, '2014-02-12 21:54:11', 77, 'Site 5', '2014-04-06 10:24:07', 63, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short10' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short10', 'Language10')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 77 AND `menus`.`language_id` = 151) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:07', 151, 1, 77, 'MyString', '2014-04-06 10:24:07')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 44 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title17', 44, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title17')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 44 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title18', 44, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title18')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 44 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title19', 44, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title19')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 44 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title20', 44, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title20')
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"152"}, "id"=>"60", "menu_id"=>"44"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 77 AND `menus`.`id` = 44 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 60 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `title` = 'Test Title', `body` = 'ContentBody', `body_short` = 'Short', `body_filtered` = 'ContentBody', `updated_at` = '2014-04-06 10:24:08' WHERE `contents`.`id` = 60[0m
Redirected to http://test.host/admin/odania/menus/44/contents
Completed 302 Found in 39ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (154, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short11' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short11', 'Language11')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:08', 'User6', '2014-04-06 10:24:08')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 6', 'Site Long Text 6', 'Site Short Text 6', 1, '2014-04-06 10:24:08', 1, 155, '2014-02-12 21:54:11', 78, 'Site 6', '2014-04-06 10:24:08', 64, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short12' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short12', 'Language12')[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 78 AND `menus`.`language_id` = 154) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:08', 154, 1, 78, 'MyString', '2014-04-06 10:24:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 45 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title21', 45, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title21')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 45 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title22', 45, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title22')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 45 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title23', 45, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title23')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 45 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title24', 45, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title24')[0m
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"45"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 78 AND `menus`.`id` = 45 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 154 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (8.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 78 AND `contents`.`language_id` = 154 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 44ms (Views: 22.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (157, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short13' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short13', 'Language13')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:08', 'User7', '2014-04-06 10:24:08')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 7', 'Site Long Text 7', 'Site Short Text 7', 1, '2014-04-06 10:24:08', 1, 158, '2014-02-12 21:54:11', 79, 'Site 7', '2014-04-06 10:24:08', 65, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short14' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short14', 'Language14')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 79 AND `menus`.`language_id` = 157) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:08', 157, 1, 79, 'MyString', '2014-04-06 10:24:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 46 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title25', 46, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title25')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 46 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title26', 46, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title26')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 46 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title27', 46, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 46 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title28', 46, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title28')[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"46"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 79 AND `menus`.`id` = 46 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 0 ORDER BY `contents`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/46/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 13ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (160, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short15' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short15', 'Language15')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:08', 'User8', '2014-04-06 10:24:08')[0m
[1m[35mOdania::MenuItem Load (4.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 8', 'Site Long Text 8', 'Site Short Text 8', 1, '2014-04-06 10:24:08', 1, 161, '2014-02-12 21:54:11', 80, 'Site 8', '2014-04-06 10:24:08', 66, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short16' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short16', 'Language16')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 80 AND `menus`.`language_id` = 160) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:08', 160, 1, 80, 'MyString', '2014-04-06 10:24:08')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 47 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title29', 47, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title29')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 47 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title30', 47, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 47 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title31', 47, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title31')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 47 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title32', 47, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title32')
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"63", "menu_id"=>"47"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 80 AND `menus`.`id` = 47 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 63 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 161 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 29ms (Views: 17.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (163, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short17' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short17', 'Language17')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 81 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 81 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 81 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'en' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('en', 'Engilish')
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 21ms (ActiveRecord: 3.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `languages`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (166, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short18' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short18', 'Language18')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"167"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 82 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 82 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 82 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 167 ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM `languages` WHERE `languages`.`id` = 167[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 19ms (ActiveRecord: 4.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (168, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short19' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short19', 'Language19')
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"169"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 83 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 83 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 83 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 169 ORDER BY `languages`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (8.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 40ms (Views: 23.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (170, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short20' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short20', 'Language20')[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 84 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 84 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 84 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 47ms (Views: 22.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (172, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short21' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short21', 'Language21')[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"173"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 85 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 85 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 85 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 173 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'Engilish' AND `languages`.`id` != 173) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'en' AND `languages`.`id` != 173) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `languages` SET `name` = 'Engilish', `iso_639_1` = 'en' WHERE `languages`.`id` = 173
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 22ms (ActiveRecord: 5.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (2.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (174, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short22' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short22', 'Language22')
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 86 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 86 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 86 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages`
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (29.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 60ms (Views: 44.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (176, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short23' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short23', 'Language23')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 87 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 87 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 87 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 0 ORDER BY `languages`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 17ms (ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (178, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short24', 'Language24')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"179"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 88 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 88 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 88 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 179 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 29ms (Views: 13.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (8.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (6.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (180, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short25' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short25', 'Language25')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:09', 'User9', '2014-04-06 10:24:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 9', 'Site Long Text 9', 'Site Short Text 9', 1, '2014-04-06 10:24:09', 1, 181, '2014-02-12 21:54:11', 89, 'Site 9', '2014-04-06 10:24:09', 67, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 89 AND `menus`.`language_id` = 180) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:09', 180, 1, 89, 'MyString', '2014-04-06 10:24:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 48 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title33', 48, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 48 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title34', 48, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title34')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 48 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title35', 48, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title35')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 48 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title36', 48, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title36')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 180) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 180) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 1' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (180, 'Site Description 1', 'www.domain1.com', 1, 0, 'Site 1', 'TRACKING CODE 1')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short26', 'Language26')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:09', 'User10', '2014-04-06 10:24:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 10', 'Site Long Text 10', 'Site Short Text 10', 1, '2014-04-06 10:24:09', 1, 182, '2014-02-12 21:54:11', 90, 'Site 10', '2014-04-06 10:24:09', 68, 1)[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `menu_items`
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"65"}, "menu_id"=>"48"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 89 AND `menus`.`id` = 48 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 65 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` IS NULL
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 48 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 48 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('test-title', 48, 5, 1, '--- !ruby/hash:ActionController::Parameters\nid: \'65\'\n', 'CONTENT', 'Test Title')
Redirected to http://test.host/admin/odania/menus/48/menu_items
Completed 302 Found in 37ms (ActiveRecord: 8.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (183, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short27', 'Language27')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:09', 'User11', '2014-04-06 10:24:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 11', 'Site Long Text 11', 'Site Short Text 11', 1, '2014-04-06 10:24:09', 1, 184, '2014-02-12 21:54:11', 91, 'Site 11', '2014-04-06 10:24:09', 69, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 91 AND `menus`.`language_id` = 183) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:09', 183, 1, 91, 'MyString', '2014-04-06 10:24:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 49 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title37', 49, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title37')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 49 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title38', 49, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title38')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 49 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title39', 49, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 49 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title40', 49, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title40')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 49 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"152", "menu_id"=>"49"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 91 AND `menus`.`id` = 49 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 49 AND `menu_items`.`id` = 152 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `menu_items` WHERE `menu_items`.`id` = 152
Redirected to http://test.host/admin/odania/menus/49/menu_items
Completed 302 Found in 15ms (ActiveRecord: 5.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (185, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short28' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short28', 'Language28')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:09', 'User12', '2014-04-06 10:24:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 12', 'Site Long Text 12', 'Site Short Text 12', 1, '2014-04-06 10:24:09', 1, 186, '2014-02-12 21:54:11', 92, 'Site 12', '2014-04-06 10:24:09', 70, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 92 AND `menus`.`language_id` = 185) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:09', 185, 1, 92, 'MyString', '2014-04-06 10:24:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 50 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title41', 50, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 50 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title42', 50, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 50 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title43', 50, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 50 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title44', 50, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 50 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"156", "menu_id"=>"50"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 92 AND `menus`.`id` = 50 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 50 AND `menu_items`.`id` = 156 ORDER BY `menu_items`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (2.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (27.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 51ms (Views: 39.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (187, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short29' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short29', 'Language29')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:09', 'User13', '2014-04-06 10:24:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 13', 'Site Long Text 13', 'Site Short Text 13', 1, '2014-04-06 10:24:09', 1, 188, '2014-02-12 21:54:11', 93, 'Site 13', '2014-04-06 10:24:09', 71, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 93 AND `menus`.`language_id` = 187) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:09', 187, 1, 93, 'MyString', '2014-04-06 10:24:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 51 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title45', 51, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title45')[0m
[1m[35mOdania::MenuItem Load (6.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 51 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title46', 51, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title46')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 51 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title47', 51, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 51 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title48', 51, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title48')[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"51"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 93 AND `menus`.`id` = 51 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 187 LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 93 AND `contents`.`language_id` = 187 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (5.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (19.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 35ms (Views: 26.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (189, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short30' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short30', 'Language30')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User14', '2014-04-06 10:24:10')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 14', 'Site Long Text 14', 'Site Short Text 14', 1, '2014-04-06 10:24:10', 1, 190, '2014-02-12 21:54:11', 94, 'Site 14', '2014-04-06 10:24:10', 72, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 94 AND `menus`.`language_id` = 189) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 189, 1, 94, 'MyString', '2014-04-06 10:24:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title49', 52, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title49')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title50', 52, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title50')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title51', 52, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title51')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title52', 52, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title52')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"164", "menu_id"=>"52"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 94 AND `menus`.`id` = 52 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 AND `menu_items`.`id` = 164 ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 52 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 52 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `menu_items` SET `target_data` = '--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n', `title` = 'Test Title', `full_path` = 'test-title', `position` = 5 WHERE `menu_items`.`id` = 164[0m
Redirected to http://test.host/admin/odania/menus/52/menu_items
Completed 302 Found in 26ms (ActiveRecord: 6.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 164 LIMIT 1
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (191, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short31', 'Language31')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User15', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 15', 'Site Long Text 15', 'Site Short Text 15', 1, '2014-04-06 10:24:10', 1, 192, '2014-02-12 21:54:11', 95, 'Site 15', '2014-04-06 10:24:10', 73, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 95 AND `menus`.`language_id` = 191) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 191, 1, 95, 'MyString', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 53 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title53', 53, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title53')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 53 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title54', 53, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title54')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 53 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title55', 53, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title55')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 53 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title56', 53, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title56')[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"53"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 95 AND `menus`.`id` = 53 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (5.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 53 ORDER BY parent_id ASC[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 41ms (Views: 30.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (193, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short32' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short32', 'Language32')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User16', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 16', 'Site Long Text 16', 'Site Short Text 16', 1, '2014-04-06 10:24:10', 1, 194, '2014-02-12 21:54:11', 96, 'Site 16', '2014-04-06 10:24:10', 74, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 96 AND `menus`.`language_id` = 193) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 193, 1, 96, 'MyString', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 54 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title57', 54, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title57')[0m
[1m[35mOdania::MenuItem Load (4.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 54 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title58', 54, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title58')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 54 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title59', 54, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title59')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 54 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title60', 54, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title60')[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"54"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 96 AND `menus`.`id` = 54 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 54 AND `menu_items`.`id` = 0 ORDER BY `menu_items`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/54/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 9ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (4.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (195, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short33' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short33', 'Language33')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User17', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 17', 'Site Long Text 17', 'Site Short Text 17', 1, '2014-04-06 10:24:10', 1, 196, '2014-02-12 21:54:11', 97, 'Site 17', '2014-04-06 10:24:10', 75, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 97 AND `menus`.`language_id` = 195) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 195, 1, 97, 'MyString', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 55 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title61', 55, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title61')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 55 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title62', 55, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title62')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 55 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title63', 55, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title63')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 55 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title64', 55, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title64')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 55 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"176", "menu_id"=>"55"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 97 AND `menus`.`id` = 55 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 55 AND `menu_items`.`id` = 176 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 26ms (Views: 16.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (197, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short34' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short34', 'Language34')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User18', '2014-04-06 10:24:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 18', 'Site Long Text 18', 'Site Short Text 18', 1, '2014-04-06 10:24:10', 1, 198, '2014-02-12 21:54:11', 98, 'Site 18', '2014-04-06 10:24:10', 76, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 98 AND `menus`.`language_id` = 197) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 197, 1, 98, 'MyString', '2014-04-06 10:24:10')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 56 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title65', 56, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title65')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 56 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title66', 56, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title66')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 56 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title67', 56, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title67')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 56 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title68', 56, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title68')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 98 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 98 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 98 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` IS NULL AND `menus`.`language_id` IS NULL) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `published`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 1, 'Test Title', '2014-04-06 10:24:10')[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 15ms (ActiveRecord: 3.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (199, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short35' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short35', 'Language35')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User19', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 19', 'Site Long Text 19', 'Site Short Text 19', 1, '2014-04-06 10:24:10', 1, 200, '2014-02-12 21:54:11', 99, 'Site 19', '2014-04-06 10:24:10', 77, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 99 AND `menus`.`language_id` = 199) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 199, 1, 99, 'MyString', '2014-04-06 10:24:10')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 58 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title69', 58, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title69')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 58 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title70', 58, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title70')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 58 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title71', 58, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title71')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 58 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title72', 58, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title72')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"58"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 99 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 99 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 99 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 58 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `menus` WHERE `menus`.`id` = 58
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 13ms (ActiveRecord: 5.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (201, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short36' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short36', 'Language36')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:10', 'User20', '2014-04-06 10:24:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 20', 'Site Long Text 20', 'Site Short Text 20', 1, '2014-04-06 10:24:10', 1, 202, '2014-02-12 21:54:11', 100, 'Site 20', '2014-04-06 10:24:10', 78, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 100 AND `menus`.`language_id` = 201) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:10', 201, 1, 100, 'MyString', '2014-04-06 10:24:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 59 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title73', 59, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title73')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 59 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title74', 59, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title74')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 59 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title75', 59, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title75')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 59 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title76', 59, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title76')
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"59"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 100 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 100 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 100 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 59 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (18.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 47ms (Views: 34.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (203, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short37', 'Language37')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User21', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 21', 'Site Long Text 21', 'Site Short Text 21', 1, '2014-04-06 10:24:11', 1, 204, '2014-02-12 21:54:11', 101, 'Site 21', '2014-04-06 10:24:11', 79, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 101 AND `menus`.`language_id` = 203) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:11', 203, 1, 101, 'MyString', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 60 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title77', 60, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title77')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 60 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title78', 60, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title78')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 60 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title79', 60, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title79')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 60 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title80', 60, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title80')[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 101 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 101 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 101 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (13.0ms)
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 40ms (Views: 24.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (3.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (205, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short38' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short38', 'Language38')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User22', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 22', 'Site Long Text 22', 'Site Short Text 22', 1, '2014-04-06 10:24:11', 1, 206, '2014-02-12 21:54:11', 102, 'Site 22', '2014-04-06 10:24:11', 80, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 102 AND `menus`.`language_id` = 205) LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:11', 205, 1, 102, 'MyString', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 61 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title81', 61, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title81')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 61 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title82', 61, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title82')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 61 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title83', 61, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title83')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 61 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title84', 61, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title84')[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"61"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 102 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 102 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 102 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 61 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 102 AND `menus`.`id` != 61 AND `menus`.`language_id` = 205) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menus` SET `title` = 'Test Title', `updated_at` = '2014-04-06 10:24:11' WHERE `menus`.`id` = 61
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 23ms (ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (207, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short39', 'Language39')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User23', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 23', 'Site Long Text 23', 'Site Short Text 23', 1, '2014-04-06 10:24:11', 1, 208, '2014-02-12 21:54:11', 103, 'Site 23', '2014-04-06 10:24:11', 81, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 103 AND `menus`.`language_id` = 207) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:11', 207, 1, 103, 'MyString', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 62 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title85', 62, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title85')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 62 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title86', 62, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title86')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 62 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title87', 62, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title87')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 62 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title88', 62, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title88')[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 103 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 103 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 103 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (6.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 103 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 103 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 207 LIMIT 1
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 44ms (Views: 23.0ms | ActiveRecord: 13.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (209, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short40' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short40', 'Language40')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User24', '2014-04-06 10:24:11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 24', 'Site Long Text 24', 'Site Short Text 24', 1, '2014-04-06 10:24:11', 1, 210, '2014-02-12 21:54:11', 104, 'Site 24', '2014-04-06 10:24:11', 82, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 104 AND `menus`.`language_id` = 209) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:11', 209, 1, 104, 'MyString', '2014-04-06 10:24:11')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 63 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title89', 63, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title89')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 63 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title90', 63, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title90')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 63 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title91', 63, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title91')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 63 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title92', 63, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title92')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 104 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 104 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 104 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 0 ORDER BY `menus`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 16ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (211, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short41' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short41', 'Language41')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User25', '2014-04-06 10:24:11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 25', 'Site Long Text 25', 'Site Short Text 25', 1, '2014-04-06 10:24:11', 1, 212, '2014-02-12 21:54:11', 105, 'Site 25', '2014-04-06 10:24:11', 83, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 105 AND `menus`.`language_id` = 211) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:11', 211, 1, 105, 'MyString', '2014-04-06 10:24:11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 64 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title93', 64, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title93')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 64 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title94', 64, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title94')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 64 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title95', 64, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title95')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 64 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title96', 64, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title96')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"64"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 105 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 105 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 105 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 64 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 105 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 211 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 37ms (Views: 20.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (213, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short42' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short42', 'Language42')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User26', '2014-04-06 10:24:11')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 26', 'Site Long Text 26', 'Site Short Text 26', 1, '2014-04-06 10:24:11', 1, 214, '2014-02-12 21:54:11', 106, 'Site 26', '2014-04-06 10:24:11', 84, 1)[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `sites`
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"213"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 106 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 106 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 106 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `name`, `template`, `tracking_code`) VALUES (213, 'description is here', 'www.test.de', 1, 'Page1', 'ASDASD', 'TRACK')
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 21ms (ActiveRecord: 5.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (215, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short43' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short43', 'Language43')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User27', '2014-04-06 10:24:11')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 27', 'Site Long Text 27', 'Site Short Text 27', 1, '2014-04-06 10:24:11', 1, 216, '2014-02-12 21:54:11', 108, 'Site 27', '2014-04-06 10:24:11', 85, 1)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"108"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 108 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 108 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 108 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 108 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 108
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 17ms (ActiveRecord: 5.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (217, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short44' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short44', 'Language44')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:11', 'User28', '2014-04-06 10:24:11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 28', 'Site Long Text 28', 'Site Short Text 28', 1, '2014-04-06 10:24:11', 1, 218, '2014-02-12 21:54:11', 109, 'Site 28', '2014-04-06 10:24:11', 86, 1)
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 109 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 109 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 109 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (26.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 56ms (Views: 37.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (219, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short45', 'Language45')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:12', 'User29', '2014-04-06 10:24:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 29', 'Site Long Text 29', 'Site Short Text 29', 1, '2014-04-06 10:24:12', 1, 220, '2014-02-12 21:54:11', 110, 'Site 29', '2014-04-06 10:24:12', 87, 1)[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"110"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 110 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 110 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 110 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 110 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (20.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.0ms)
Completed 200 OK in 49ms (Views: 35.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (221, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short46' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short46', 'Language46')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:12', 'User30', '2014-04-06 10:24:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 30', 'Site Long Text 30', 'Site Short Text 30', 1, '2014-04-06 10:24:12', 1, 222, '2014-02-12 21:54:11', 111, 'Site 30', '2014-04-06 10:24:12', 88, 1)[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 111 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 111 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 111 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (18.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 25.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (223, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short47' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short47', 'Language47')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:12', 'User31', '2014-04-06 10:24:12')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 31', 'Site Long Text 31', 'Site Short Text 31', 1, '2014-04-06 10:24:12', 1, 224, '2014-02-12 21:54:11', 112, 'Site 31', '2014-04-06 10:24:12', 89, 1)
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"112"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 112 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 112 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 112 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 112 ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE (`sites`.`host` = BINARY 'www.test.de' AND `sites`.`id` != 112) LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE (`sites`.`name` = BINARY 'Page1' AND `sites`.`id` != 112) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `sites` SET `name` = 'Page1', `host` = 'www.test.de', `tracking_code` = 'TRACK', `description` = 'description is here' WHERE `sites`.`id` = 112[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 24ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (225, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short48' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short48', 'Language48')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:12', 'User32', '2014-04-06 10:24:12')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 32', 'Site Long Text 32', 'Site Short Text 32', 1, '2014-04-06 10:24:12', 1, 226, '2014-02-12 21:54:11', 113, 'Site 32', '2014-04-06 10:24:12', 90, 1)
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 113 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 113 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 113 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites`
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 225 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 113
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 25ms (Views: 12.0ms | ActiveRecord: 8.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (227, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short49' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short49', 'Language49')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:12', 'User33', '2014-04-06 10:24:12')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 33', 'Site Long Text 33', 'Site Short Text 33', 1, '2014-04-06 10:24:12', 1, 228, '2014-02-12 21:54:11', 114, 'Site 33', '2014-04-06 10:24:12', 91, 1)
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 114 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 114 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 114 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (5.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 0 ORDER BY `sites`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 18ms (ActiveRecord: 10.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (8.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (229, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short50' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short50', 'Language50')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:12', 'User34', '2014-04-06 10:24:12')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 34', 'Site Long Text 34', 'Site Short Text 34', 1, '2014-04-06 10:24:12', 1, 230, '2014-02-12 21:54:11', 115, 'Site 34', '2014-04-06 10:24:12', 92, 1)[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"115"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 115 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 115 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 115 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 115 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 229 LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 29ms (Views: 12.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (231, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (232, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 232) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 232) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (232, 'Site Description 2', 'www.domain2.com', 1, 0, 'Site 2', 'TRACKING CODE 2')[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain2.com' ORDER BY `sites`.`id` ASC LIMIT 1
Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (233, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 233) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 233) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (233, 'Site Description 3', 'www.domain3.com', 1, 0, 'Site 3', 'TRACKING CODE 3')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 120 AND `menus`.`language_id` = 233) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:12', 233, 1, 120, 'MyString', '2014-04-06 10:24:12')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 65 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title97', 65, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title97')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain3.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'en' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 233 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 120 AND `menus`.`language_id` = 233 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 233 LIMIT 1 [["id", 233]]
Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (234, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (9.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (235, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites`[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 122
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 6ms (Views: 1.0ms | ActiveRecord: 2.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (236, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 236) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 236) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (236, 'Site Description 4', 'www.domain4.com', 1, 0, 'Site 4', 'TRACKING CODE 4')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 236) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 236) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'RedirectSite' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `host`, `is_active`, `name`, `redirect_to_id`) VALUES (236, 'redirect.host', 1, 'RedirectSite', 124)[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'redirect.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 124 LIMIT 1[0m
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (237, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 126 AND `menus`.`language_id` = 237) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:12', 237, 1, 126, 'MyString', '2014-04-06 10:24:12')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 66 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title98', 66, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title98')
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:24:12 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 126 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 237 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 66 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 66 LIMIT 1
[1m[36mCACHE (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 237 LIMIT 1[0m [["id", 237]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 66 AND `menu_items`.`parent_id` = 213 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (11.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (15.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 126[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 237 LIMIT 1 [["id", 237]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (324.0ms)
Completed 200 OK in 456ms (Views: 449.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (238, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:24:13 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:24:13 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
[1m[35mSavepoint (4.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (239, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short51', 'Language51')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User35', '2014-04-06 10:24:13')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 35', 'Site Long Text 35', 'Site Short Text 35', 1, '2014-04-06 10:24:13', 1, 240, '2014-02-12 21:54:11', 128, 'Site 35', '2014-04-06 10:24:13', 93, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 128 AND `menus`.`language_id` = 239) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:13', 239, 1, 128, 'MyString', '2014-04-06 10:24:13')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 67 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title99', 67, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title99')
[1m[36mSavepoint (3.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (241, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short52' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short52', 'Language52')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User36', '2014-04-06 10:24:13')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 36', 'Site Long Text 36', 'Site Short Text 36', 1, '2014-04-06 10:24:13', 1, 242, '2014-02-12 21:54:11', 129, 'Site 36', '2014-04-06 10:24:13', 94, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 129 AND `menus`.`language_id` = 241) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:13', 241, 1, 129, 'MyString', '2014-04-06 10:24:13')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 68 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title100', 68, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title100')[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:24:13 +0200
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (243, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short53', 'Language53')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User37', '2014-04-06 10:24:13')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (8.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:24:13', 1, 244, '2014-04-06 10:24:13', 130, 'asd123', '2014-04-06 10:24:13', 95)[0m
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:24:13', 1, 244, '2014-04-06 10:24:13', 130, 'asd123', '2014-04-06 10:24:13', 95)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (245, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short54', 'Language54')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User38', '2014-04-06 10:24:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:24:13', 1, 246, '2014-04-06 10:24:13', 131, 'asd123', '2014-04-06 10:24:13', 96)
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:24:13', 1, 246, '2014-04-06 10:24:13', 131, 'asd123', '2014-04-06 10:24:13', 96)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (247, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short55', 'Language55')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User39', '2014-04-06 10:24:13')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:24:13', 1, 248, '2014-04-06 10:24:13', 132, 'asd123', '2014-04-06 10:24:13', 97)[0m
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:24:13', 1, 248, '2014-04-06 10:24:13', 132, 'asd123', '2014-04-06 10:24:13', 97)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (249, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short56', 'Language56')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User40', '2014-04-06 10:24:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 37', 'Site Long Text 37', 'Site Short Text 37', 1, '2014-04-06 10:24:13', 1, 250, '2014-02-12 21:54:11', 133, 'Site 37', '2014-04-06 10:24:13', 98, 1)
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (2.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (251, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short57', 'Language57')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:13', 'User41', '2014-04-06 10:24:13')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 38', 'Site Long Text 38', 'Site Short Text 38', 1, '2014-04-06 10:24:13', 1, 252, '2014-02-12 21:54:11', 134, 'Site 38', '2014-04-06 10:24:13', 99, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 134 AND `menus`.`language_id` = 251) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:13', 251, 1, 134, 'MyString', '2014-04-06 10:24:13')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 69 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title101', 69, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title101')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 251) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 251) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (251, 'Site Description 5', 'www.domain5.com', 1, 0, 'Site 5', 'TRACKING CODE 5')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain5.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 135 AND `menus`.`language_id` = 251 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (253, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short58' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short58', 'Language58')[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User42', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 39', 'Site Long Text 39', 'Site Short Text 39', 1, '2014-04-06 10:24:14', 1, 254, '2014-02-12 21:54:11', 136, 'Site 39', '2014-04-06 10:24:14', 100, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 136 AND `menus`.`language_id` = 253) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:14', 253, 1, 136, 'MyString', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 70 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title102', 70, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title102')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 70 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 70 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 70 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menu_items` SET `target_data` = '---\nurl: http://www.planetech.de\n', `position` = 2 WHERE `menu_items`.`id` = 217
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 136 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 253 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 70 LIMIT 1
Redirected to http://www.planetech.de
Completed 302 Found in 18ms (ActiveRecord: 2.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (255, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short59' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short59', 'Language59')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User43', '2014-04-06 10:24:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 40', 'Site Long Text 40', 'Site Short Text 40', 1, '2014-04-06 10:24:14', 1, 256, '2014-02-12 21:54:11', 137, 'Site 40', '2014-04-06 10:24:14', 101, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 137 AND `menus`.`language_id` = 255) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:14', 255, 1, 137, 'MyString', '2014-04-06 10:24:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 71 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title103', 71, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title103')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 137 AND `menus`.`language_id` = 255 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 255 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 137
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 255 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` IS NULL ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 255 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 137 AND `menus`.`language_id` = 255 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 255 LIMIT 1[0m
Redirected to http://test.host/de
Completed 302 Found in 20ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (257, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short60', 'Language60')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User44', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 41', 'Site Long Text 41', 'Site Short Text 41', 1, '2014-04-06 10:24:14', 1, 258, '2014-02-12 21:54:11', 138, 'Site 41', '2014-04-06 10:24:14', 102, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 138 AND `menus`.`language_id` = 257) LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:14', 257, 1, 138, 'MyString', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title104', 72, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title104')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short61' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short61', 'Language61')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User45', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 42', 'Site Long Text 42', 'Site Short Text 42', 1, '2014-04-06 10:24:14', 1, 259, '2014-02-12 21:54:11', 138, 'Site 42', '2014-04-06 10:24:14', 103, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short62', 'Language62')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User46', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 43', 'Site Long Text 43', 'Site Short Text 43', 1, '2014-04-06 10:24:14', 1, 260, '2014-02-12 21:54:11', 138, 'Site 43', '2014-04-06 10:24:14', 104, 1)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title105', 72, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title105')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 220
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 138 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 257 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`full_path` = 'title105' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 72 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (3.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 138 AND `contents`.`language_id` = 257 ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (10.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 72 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 257 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`parent_id` = 219 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 72 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 257 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 72 AND `menu_items`.`parent_id` = 220 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (21.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (22.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 138
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 257 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 61ms (Views: 39.0ms | ActiveRecord: 13.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (9.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (261, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short63' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short63', 'Language63')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User47', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (4.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 44', 'Site Long Text 44', 'Site Short Text 44', 1, '2014-04-06 10:24:14', 1, 262, '2014-02-12 21:54:11', 139, 'Site 44', '2014-04-06 10:24:14', 105, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 139 AND `menus`.`language_id` = 261) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:14', 261, 1, 139, 'MyString', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title106', 73, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title106')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short64' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short64', 'Language64')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User48', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 45', 'Site Long Text 45', 'Site Short Text 45', 1, '2014-04-06 10:24:14', 1, 263, '2014-02-12 21:54:11', 139, 'Site 45', '2014-04-06 10:24:14', 106, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short65', 'Language65')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User49', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 46', 'Site Long Text 46', 'Site Short Text 46', 1, '2014-04-06 10:24:14', 1, 264, '2014-02-12 21:54:11', 139, 'Site 46', '2014-04-06 10:24:14', 107, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title107', 73, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title107')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 222
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/100-site-45"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 139 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 261 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`full_path` = 'title107/100-site-45' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`full_path` = 'title107' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (2.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 139 AND `contents`.`id` = 100 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 106 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 100 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (29.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (36.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 73 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 261 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`parent_id` = 221 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 73 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 261 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 73 AND `menu_items`.`parent_id` = 222 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (19.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (20.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 139
[1m[36mOdania::Language Load (2.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 261 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 92ms (Views: 59.0ms | ActiveRecord: 17.0ms)
[1m[35mSavepoint (5.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (265, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short66' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short66', 'Language66')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User50', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 47', 'Site Long Text 47', 'Site Short Text 47', 1, '2014-04-06 10:24:14', 1, 266, '2014-02-12 21:54:11', 140, 'Site 47', '2014-04-06 10:24:14', 108, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 140 AND `menus`.`language_id` = 265) LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:14', 265, 1, 140, 'MyString', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 74 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title108', 74, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title108')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short67', 'Language67')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User51', '2014-04-06 10:24:14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 48', 'Site Long Text 48', 'Site Short Text 48', 1, '2014-04-06 10:24:14', 1, 267, '2014-02-12 21:54:11', 140, 'Site 48', '2014-04-06 10:24:14', 109, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 74 ORDER BY `menu_items`.`id` DESC LIMIT 1[0m
[1m[35mOdania::Content Load (2.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 103 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 223[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 223, `updated_at` = '2014-04-06 10:24:14' WHERE `contents`.`id` = 103
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 74 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 74 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 103\n', `position` = 2 WHERE `menu_items`.`id` = 223[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 140 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 265 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 74 AND `menu_items`.`full_path` = 'title108' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 140 AND `contents`.`id` = 103 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 103 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 74 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 74 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 265 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 74 AND `menu_items`.`parent_id` = 223 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (12.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (12.0ms)
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 140[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 265 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 48ms (Views: 26.0ms | ActiveRecord: 12.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (268, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short68' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short68', 'Language68')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User52', '2014-04-06 10:24:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 49', 'Site Long Text 49', 'Site Short Text 49', 1, '2014-04-06 10:24:14', 1, 269, '2014-02-12 21:54:11', 141, 'Site 49', '2014-04-06 10:24:14', 110, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 141 AND `menus`.`language_id` = 268) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:14', 268, 1, 141, 'MyString', '2014-04-06 10:24:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title109', 75, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title109')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short69', 'Language69')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:14', 'User53', '2014-04-06 10:24:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 50', 'Site Long Text 50', 'Site Short Text 50', 1, '2014-04-06 10:24:14', 1, 270, '2014-02-12 21:54:11', 141, 'Site 50', '2014-04-06 10:24:14', 111, 1)[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 ORDER BY `menu_items`.`id` DESC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 75 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title110', 75, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title110')[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 105 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 225[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 225, `updated_at` = '2014-04-06 10:24:14' WHERE `contents`.`id` = 105
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 224 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`parent_id` = 224 ORDER BY position DESC LIMIT 1
[1m[36mSQL (8.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 105\n', `parent_id` = 224, `full_path` = 'title109/title110', `position` = 1 WHERE `menu_items`.`id` = 225[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 141 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 268 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`full_path` = 'title109/title110' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 141 AND `contents`.`id` = 105 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 111 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 105 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 75 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 268 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`parent_id` = 224 ORDER BY position ASC
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 75 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 268 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 75 AND `menu_items`.`parent_id` = 225 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (16.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 141
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 268 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 54ms (Views: 28.0ms | ActiveRecord: 12.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (271, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short70', 'Language70')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:15', 'User54', '2014-04-06 10:24:15')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 51', 'Site Long Text 51', 'Site Short Text 51', 1, '2014-04-06 10:24:15', 1, 272, '2014-02-12 21:54:11', 142, 'Site 51', '2014-04-06 10:24:15', 112, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 142 AND `menus`.`language_id` = 271) LIMIT 1[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:15', 271, 1, 142, 'MyString', '2014-04-06 10:24:15')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 76 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title111', 76, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title111')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 76 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 106 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 226[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 226, `updated_at` = '2014-04-06 10:24:15' WHERE `contents`.`id` = 106
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 76 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 76 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 106\n', `position` = 2 WHERE `menu_items`.`id` = 226[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `body` = 'This is a #ABC-Tag test', `menu_item_id` = 226, `body_filtered` = 'This is a ABC-Tag test', `updated_at` = '2014-04-06 10:24:15' WHERE `contents`.`id` = 106
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'ABC-Tag' AND `tags`.`site_id` = 142 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('ABC-Tag', 142)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 2 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 106 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 106, 'Odania::Content', 2)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 2 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 2
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 2[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 142 AND `menus`.`language_id` = 271 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 271 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 142 AND `tags`.`name` = 'ABC-Tag' ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 2 LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 2
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 106 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 226 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 76 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 271 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 76 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 76 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 271 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 76 AND `menu_items`.`parent_id` = 226 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (8.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (9.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 142[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 271 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 68ms (Views: 36.0ms | ActiveRecord: 13.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (3.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (273, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short71' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short71', 'Language71')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:15', 'User55', '2014-04-06 10:24:15')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (10.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 52', 'Site Long Text 52', 'Site Short Text 52', 1, '2014-04-06 10:24:15', 1, 274, '2014-02-12 21:54:11', 143, 'Site 52', '2014-04-06 10:24:15', 113, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 143 AND `menus`.`language_id` = 273) LIMIT 1
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:15', 273, 1, 143, 'MyString', '2014-04-06 10:24:15')[0m
[1m[35mOdania::MenuItem Load (6.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 77 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title112', 77, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title112')[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 143 AND `menus`.`language_id` = 273 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 273 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 143 AND `tags`.`name` = 'ABC' ORDER BY `tags`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (5.0ms)
[1m[36mOdania::MenuItem Load (4.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 77 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 77 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 273 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 77 AND `menu_items`.`parent_id` = 227 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (13.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (15.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 143[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 273 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 49ms (Views: 27.0ms | ActiveRecord: 13.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (275, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short72' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short72', 'Language72')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:24:15', 'User56', '2014-04-06 10:24:15')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 53', 'Site Long Text 53', 'Site Short Text 53', 1, '2014-04-06 10:24:15', 1, 276, '2014-02-12 21:54:11', 144, 'Site 53', '2014-04-06 10:24:15', 114, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 144 AND `menus`.`language_id` = 275) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:24:15', 275, 1, 144, 'MyString', '2014-04-06 10:24:15')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 78 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title113', 78, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title113')[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 144 AND `menus`.`language_id` = 275 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 275 LIMIT 1[0m
[1m[35mOdania::Tag Exists (1.0ms)[0m SELECT 1 AS one FROM `tags` WHERE `tags`.`site_id` = 144 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 78 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 78 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 275 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 78 AND `menu_items`.`parent_id` = 228 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 144[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 275 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 35ms (Views: 17.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (277, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short1' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short1', 'Language1')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:38', 'User1', '2014-04-06 10:25:38')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 1', 'Site Long Text 1', 'Site Short Text 1', 1, '2014-04-06 10:25:38', 1, 278, '2014-02-12 21:54:11', 145, 'Site 1', '2014-04-06 10:25:38', 115, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short2', 'Language2')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 145 AND `menus`.`language_id` = 277) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:38', 277, 1, 145, 'MyString', '2014-04-06 10:25:38')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 79 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title1', 79, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title1')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 79 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title2', 79, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title2')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 79 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title3', 79, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title3')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 79 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title4', 79, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title4')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:25:38 +0200", "language_id"=>"279", "site_id"=>"145"}, "menu_id"=>"79"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (5.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 145 AND `menus`.`id` = 79 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`name` = 'Admin' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:38', 'Admin', '2014-04-06 10:25:38')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('ContentBody', 'ContentBody', 'Short', '2014-04-06 10:25:38', 1, 279, '2014-04-06 10:25:38', 145, 'Test Title', '2014-04-06 10:25:38', 116)
Redirected to http://test.host/admin/odania/menus/79/contents
Completed 302 Found in 50ms (ActiveRecord: 9.0ms)
[1m[36m (4.0ms)[0m [1mSELECT COUNT(*) FROM `contents`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mSavepoint (6.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (280, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short3' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short3', 'Language3')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:39', 'User2', '2014-04-06 10:25:39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 2', 'Site Long Text 2', 'Site Short Text 2', 1, '2014-04-06 10:25:39', 1, 281, '2014-02-12 21:54:11', 146, 'Site 2', '2014-04-06 10:25:39', 117, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short4', 'Language4')[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 146 AND `menus`.`language_id` = 280) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:39', 280, 1, 146, 'MyString', '2014-04-06 10:25:39')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 80 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title5', 80, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title5')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 80 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title6', 80, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title6')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 80 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title7', 80, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title7')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 80 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title8', 80, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title8')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"111", "menu_id"=>"80"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 146 AND `menus`.`id` = 80 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 111 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`ref_id` = 111 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `contents` WHERE `contents`.`id` = 111[0m
Redirected to http://test.host/admin/odania/menus/80/contents
Completed 302 Found in 33ms (ActiveRecord: 6.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (283, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short5' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short5', 'Language5')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:39', 'User3', '2014-04-06 10:25:39')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 3', 'Site Long Text 3', 'Site Short Text 3', 1, '2014-04-06 10:25:39', 1, 284, '2014-02-12 21:54:11', 147, 'Site 3', '2014-04-06 10:25:39', 118, 1)[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short6' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short6', 'Language6')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 147 AND `menus`.`language_id` = 283) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:39', 283, 1, 147, 'MyString', '2014-04-06 10:25:39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 81 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title9', 81, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title9')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 81 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title10', 81, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 81 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title11', 81, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 81 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title12', 81, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title12')
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"112", "menu_id"=>"81"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (7.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 147 AND `menus`.`id` = 81 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 112 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (42.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.0ms)
Completed 200 OK in 205ms (Views: 187.0ms | ActiveRecord: 11.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (286, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short7', 'Language7')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:39', 'User4', '2014-04-06 10:25:39')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 4', 'Site Long Text 4', 'Site Short Text 4', 1, '2014-04-06 10:25:39', 1, 287, '2014-02-12 21:54:11', 148, 'Site 4', '2014-04-06 10:25:39', 119, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short8' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short8', 'Language8')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 148 AND `menus`.`language_id` = 286) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:39', 286, 1, 148, 'MyString', '2014-04-06 10:25:39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 82 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title13', 82, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 82 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title14', 82, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 82 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title15', 82, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title15')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 82 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title16', 82, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title16')
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"82"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 148 AND `menus`.`id` = 82 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 286 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (26.0ms)
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 54ms (Views: 40.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (20.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (289, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short9' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short9', 'Language9')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:39', 'User5', '2014-04-06 10:25:39')[0m
[1m[35mOdania::MenuItem Load (5.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 5', 'Site Long Text 5', 'Site Short Text 5', 1, '2014-04-06 10:25:40', 1, 290, '2014-02-12 21:54:11', 149, 'Site 5', '2014-04-06 10:25:40', 120, 1)[0m
[1m[35mOdania::Language Exists (13.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short10', 'Language10')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 149 AND `menus`.`language_id` = 289) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:40', 289, 1, 149, 'MyString', '2014-04-06 10:25:40')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 83 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title17', 83, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title17')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 83 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title18', 83, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title18')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 83 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title19', 83, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title19')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 83 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title20', 83, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title20')
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"290"}, "id"=>"114", "menu_id"=>"83"}
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 149 AND `menus`.`id` = 83 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 114 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `title` = 'Test Title', `body` = 'ContentBody', `body_short` = 'Short', `body_filtered` = 'ContentBody', `updated_at` = '2014-04-06 10:25:40' WHERE `contents`.`id` = 114[0m
Redirected to http://test.host/admin/odania/menus/83/contents
Completed 302 Found in 36ms (ActiveRecord: 7.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (292, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short11' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short11', 'Language11')[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:40', 'User6', '2014-04-06 10:25:40')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 6', 'Site Long Text 6', 'Site Short Text 6', 1, '2014-04-06 10:25:40', 1, 293, '2014-02-12 21:54:11', 150, 'Site 6', '2014-04-06 10:25:40', 121, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short12', 'Language12')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 150 AND `menus`.`language_id` = 292) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:40', 292, 1, 150, 'MyString', '2014-04-06 10:25:40')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 84 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title21', 84, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title21')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 84 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title22', 84, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title22')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 84 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title23', 84, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title23')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 84 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title24', 84, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title24')[0m
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"84"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 150 AND `menus`.`id` = 84 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 292 LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (7.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 150 AND `contents`.`language_id` = 292 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 44ms (Views: 21.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (295, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short13' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short13', 'Language13')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:40', 'User7', '2014-04-06 10:25:40')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 7', 'Site Long Text 7', 'Site Short Text 7', 1, '2014-04-06 10:25:40', 1, 296, '2014-02-12 21:54:11', 151, 'Site 7', '2014-04-06 10:25:40', 122, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short14' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short14', 'Language14')[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 151 AND `menus`.`language_id` = 295) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:40', 295, 1, 151, 'MyString', '2014-04-06 10:25:40')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 85 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title25', 85, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title25')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 85 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title26', 85, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title26')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 85 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title27', 85, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 85 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title28', 85, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title28')[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"85"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 151 AND `menus`.`id` = 85 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 0 ORDER BY `contents`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/85/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 12ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (6.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (298, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short15' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short15', 'Language15')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:40', 'User8', '2014-04-06 10:25:40')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 8', 'Site Long Text 8', 'Site Short Text 8', 1, '2014-04-06 10:25:40', 1, 299, '2014-02-12 21:54:11', 152, 'Site 8', '2014-04-06 10:25:40', 123, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short16' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short16', 'Language16')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 152 AND `menus`.`language_id` = 298) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:40', 298, 1, 152, 'MyString', '2014-04-06 10:25:40')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 86 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title29', 86, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title29')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 86 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title30', 86, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 86 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title31', 86, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 86 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title32', 86, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title32')
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"117", "menu_id"=>"86"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 152 AND `menus`.`id` = 86 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 117 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 299 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 28ms (Views: 16.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (301, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short17' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short17', 'Language17')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 153 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 153 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 153 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'en' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('en', 'Engilish')
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 19ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `languages`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (304, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short18' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short18', 'Language18')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"305"}
[1m[36mOdania::Site Load (3.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 154 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 154 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 154 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 305 ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `languages` WHERE `languages`.`id` = 305[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 22ms (ActiveRecord: 8.0ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `languages`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (306, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short19' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short19', 'Language19')
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"307"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 155 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 155 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 155 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 307 ORDER BY `languages`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (8.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 37ms (Views: 22.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (308, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short20' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short20', 'Language20')[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 156 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 156 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 156 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 35ms (Views: 20.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (2.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (310, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short21', 'Language21')[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"311"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 157 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 157 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 157 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 311 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'Engilish' AND `languages`.`id` != 311) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'en' AND `languages`.`id` != 311) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `languages` SET `name` = 'Engilish', `iso_639_1` = 'en' WHERE `languages`.`id` = 311
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 21ms (ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (312, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short22' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short22', 'Language22')
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 158 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 158 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 158 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages`
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (11.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 26.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (314, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short23' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short23', 'Language23')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 159 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 159 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 159 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 0 ORDER BY `languages`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 18ms (ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (12.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (316, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short24' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short24', 'Language24')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"317"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 160 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 160 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 160 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 317 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 32ms (Views: 14.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (3.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (318, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short25' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short25', 'Language25')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:41', 'User9', '2014-04-06 10:25:41')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 9', 'Site Long Text 9', 'Site Short Text 9', 1, '2014-04-06 10:25:41', 1, 319, '2014-02-12 21:54:11', 161, 'Site 9', '2014-04-06 10:25:41', 124, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 161 AND `menus`.`language_id` = 318) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:41', 318, 1, 161, 'MyString', '2014-04-06 10:25:41')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 87 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title33', 87, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 87 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title34', 87, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title34')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 87 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title35', 87, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title35')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 87 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title36', 87, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title36')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 318) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 318) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 1' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (318, 'Site Description 1', 'www.domain1.com', 1, 0, 'Site 1', 'TRACKING CODE 1')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short26', 'Language26')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:41', 'User10', '2014-04-06 10:25:41')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 10', 'Site Long Text 10', 'Site Short Text 10', 1, '2014-04-06 10:25:41', 1, 320, '2014-02-12 21:54:11', 162, 'Site 10', '2014-04-06 10:25:41', 125, 1)[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menu_items`
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"119"}, "menu_id"=>"87"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 161 AND `menus`.`id` = 87 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 119 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` IS NULL
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 87 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 87 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('test-title', 87, 5, 1, '--- !ruby/hash:ActionController::Parameters\nid: \'119\'\n', 'CONTENT', 'Test Title')
Redirected to http://test.host/admin/odania/menus/87/menu_items
Completed 302 Found in 42ms (ActiveRecord: 8.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (321, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short27', 'Language27')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:41', 'User11', '2014-04-06 10:25:41')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 11', 'Site Long Text 11', 'Site Short Text 11', 1, '2014-04-06 10:25:41', 1, 322, '2014-02-12 21:54:11', 163, 'Site 11', '2014-04-06 10:25:41', 126, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 163 AND `menus`.`language_id` = 321) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:41', 321, 1, 163, 'MyString', '2014-04-06 10:25:41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 88 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title37', 88, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title37')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 88 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title38', 88, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title38')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 88 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title39', 88, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 88 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title40', 88, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title40')
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 88 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"266", "menu_id"=>"88"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 163 AND `menus`.`id` = 88 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 88 AND `menu_items`.`id` = 266 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `menu_items` WHERE `menu_items`.`id` = 266
Redirected to http://test.host/admin/odania/menus/88/menu_items
Completed 302 Found in 15ms (ActiveRecord: 4.0ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (11.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (323, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short28' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short28', 'Language28')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:41', 'User12', '2014-04-06 10:25:41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 12', 'Site Long Text 12', 'Site Short Text 12', 1, '2014-04-06 10:25:41', 1, 324, '2014-02-12 21:54:11', 164, 'Site 12', '2014-04-06 10:25:41', 127, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 164 AND `menus`.`language_id` = 323) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:41', 323, 1, 164, 'MyString', '2014-04-06 10:25:41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 89 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title41', 89, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 89 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title42', 89, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 89 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title43', 89, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 89 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title44', 89, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 89 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"270", "menu_id"=>"89"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 164 AND `menus`.`id` = 89 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 89 AND `menu_items`.`id` = 270 ORDER BY `menu_items`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (1.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (31.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 54ms (Views: 44.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (3.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (325, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short29' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short29', 'Language29')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User13', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 13', 'Site Long Text 13', 'Site Short Text 13', 1, '2014-04-06 10:25:42', 1, 326, '2014-02-12 21:54:11', 165, 'Site 13', '2014-04-06 10:25:42', 128, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 165 AND `menus`.`language_id` = 325) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 325, 1, 165, 'MyString', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 90 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title45', 90, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title45')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 90 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title46', 90, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 90 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title47', 90, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 90 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title48', 90, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title48')[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"90"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 165 AND `menus`.`id` = 90 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 325 LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 165 AND `contents`.`language_id` = 325 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (7.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (24.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 42ms (Views: 32.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (327, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short30' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short30', 'Language30')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User14', '2014-04-06 10:25:42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 14', 'Site Long Text 14', 'Site Short Text 14', 1, '2014-04-06 10:25:42', 1, 328, '2014-02-12 21:54:11', 166, 'Site 14', '2014-04-06 10:25:42', 129, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 166 AND `menus`.`language_id` = 327) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 327, 1, 166, 'MyString', '2014-04-06 10:25:42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title49', 91, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title49')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title50', 91, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title50')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title51', 91, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title51')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title52', 91, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title52')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"278", "menu_id"=>"91"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 166 AND `menus`.`id` = 91 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 AND `menu_items`.`id` = 278 ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 91 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 91 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_data` = '--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n', `title` = 'Test Title', `full_path` = 'test-title', `position` = 5 WHERE `menu_items`.`id` = 278[0m
Redirected to http://test.host/admin/odania/menus/91/menu_items
Completed 302 Found in 22ms (ActiveRecord: 5.0ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 278 LIMIT 1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (329, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short31', 'Language31')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User15', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 15', 'Site Long Text 15', 'Site Short Text 15', 1, '2014-04-06 10:25:42', 1, 330, '2014-02-12 21:54:11', 167, 'Site 15', '2014-04-06 10:25:42', 130, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 167 AND `menus`.`language_id` = 329) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 329, 1, 167, 'MyString', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 92 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title53', 92, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title53')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 92 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title54', 92, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 92 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title55', 92, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 92 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title56', 92, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title56')[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"92"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 167 AND `menus`.`id` = 92 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 92 ORDER BY parent_id ASC[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 41ms (Views: 29.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (331, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short32', 'Language32')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User16', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 16', 'Site Long Text 16', 'Site Short Text 16', 1, '2014-04-06 10:25:42', 1, 332, '2014-02-12 21:54:11', 168, 'Site 16', '2014-04-06 10:25:42', 131, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 168 AND `menus`.`language_id` = 331) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 331, 1, 168, 'MyString', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 93 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title57', 93, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title57')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 93 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title58', 93, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title58')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 93 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title59', 93, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title59')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 93 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title60', 93, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title60')[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"93"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 168 AND `menus`.`id` = 93 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 93 AND `menu_items`.`id` = 0 ORDER BY `menu_items`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/93/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 2.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (333, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short33' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short33', 'Language33')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User17', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 17', 'Site Long Text 17', 'Site Short Text 17', 1, '2014-04-06 10:25:42', 1, 334, '2014-02-12 21:54:11', 169, 'Site 17', '2014-04-06 10:25:42', 132, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 169 AND `menus`.`language_id` = 333) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 333, 1, 169, 'MyString', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 94 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title61', 94, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title61')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 94 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title62', 94, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title62')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 94 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title63', 94, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title63')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 94 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title64', 94, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title64')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 94 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"290", "menu_id"=>"94"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 169 AND `menus`.`id` = 94 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 94 AND `menu_items`.`id` = 290 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 27ms (Views: 16.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (335, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short34' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short34', 'Language34')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User18', '2014-04-06 10:25:42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 18', 'Site Long Text 18', 'Site Short Text 18', 1, '2014-04-06 10:25:42', 1, 336, '2014-02-12 21:54:11', 170, 'Site 18', '2014-04-06 10:25:42', 133, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 170 AND `menus`.`language_id` = 335) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 335, 1, 170, 'MyString', '2014-04-06 10:25:42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 95 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title65', 95, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title65')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 95 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title66', 95, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title66')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 95 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title67', 95, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title67')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 95 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title68', 95, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title68')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 170 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 170 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 170 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` IS NULL AND `menus`.`language_id` IS NULL) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `published`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 1, 'Test Title', '2014-04-06 10:25:42')[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 15ms (ActiveRecord: 5.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (337, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short35' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short35', 'Language35')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User19', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 19', 'Site Long Text 19', 'Site Short Text 19', 1, '2014-04-06 10:25:42', 1, 338, '2014-02-12 21:54:11', 171, 'Site 19', '2014-04-06 10:25:42', 134, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 171 AND `menus`.`language_id` = 337) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 337, 1, 171, 'MyString', '2014-04-06 10:25:42')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 97 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title69', 97, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title69')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 97 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title70', 97, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title70')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 97 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title71', 97, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title71')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 97 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title72', 97, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title72')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `menus`
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"97"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 171 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 171 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 171 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 97 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `menus` WHERE `menus`.`id` = 97
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 12ms (ActiveRecord: 2.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (339, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short36' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short36', 'Language36')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:42', 'User20', '2014-04-06 10:25:42')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 20', 'Site Long Text 20', 'Site Short Text 20', 1, '2014-04-06 10:25:42', 1, 340, '2014-02-12 21:54:11', 172, 'Site 20', '2014-04-06 10:25:42', 135, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 172 AND `menus`.`language_id` = 339) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:42', 339, 1, 172, 'MyString', '2014-04-06 10:25:42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 98 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title73', 98, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title73')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 98 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title74', 98, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title74')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 98 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title75', 98, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title75')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 98 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title76', 98, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title76')
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"98"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 172 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 172 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 172 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 98 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (20.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 51ms (Views: 36.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (341, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short37' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short37', 'Language37')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User21', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 21', 'Site Long Text 21', 'Site Short Text 21', 1, '2014-04-06 10:25:43', 1, 342, '2014-02-12 21:54:11', 173, 'Site 21', '2014-04-06 10:25:43', 136, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 173 AND `menus`.`language_id` = 341) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:43', 341, 1, 173, 'MyString', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 99 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title77', 99, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title77')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 99 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title78', 99, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title78')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 99 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title79', 99, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title79')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 99 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title80', 99, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title80')[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 173 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 173 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 173 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (14.0ms)
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 36ms (Views: 23.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (343, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short38' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short38', 'Language38')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User22', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 22', 'Site Long Text 22', 'Site Short Text 22', 1, '2014-04-06 10:25:43', 1, 344, '2014-02-12 21:54:11', 174, 'Site 22', '2014-04-06 10:25:43', 137, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 174 AND `menus`.`language_id` = 343) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:43', 343, 1, 174, 'MyString', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 100 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title81', 100, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title81')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 100 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title82', 100, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title82')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 100 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title83', 100, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title83')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 100 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title84', 100, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title84')[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"100"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 174 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 174 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 174 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 100 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 174 AND `menus`.`id` != 100 AND `menus`.`language_id` = 343) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menus` SET `title` = 'Test Title', `updated_at` = '2014-04-06 10:25:43' WHERE `menus`.`id` = 100
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 20ms (ActiveRecord: 4.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (345, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short39' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short39', 'Language39')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User23', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 23', 'Site Long Text 23', 'Site Short Text 23', 1, '2014-04-06 10:25:43', 1, 346, '2014-02-12 21:54:11', 175, 'Site 23', '2014-04-06 10:25:43', 138, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 175 AND `menus`.`language_id` = 345) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:43', 345, 1, 175, 'MyString', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (3.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 101 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title85', 101, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title85')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 101 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title86', 101, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title86')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 101 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title87', 101, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title87')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 101 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title88', 101, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title88')[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 175 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 175 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 175 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 175 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 175 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 345 LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 32ms (Views: 20.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (347, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short40' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short40', 'Language40')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User24', '2014-04-06 10:25:43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 24', 'Site Long Text 24', 'Site Short Text 24', 1, '2014-04-06 10:25:43', 1, 348, '2014-02-12 21:54:11', 176, 'Site 24', '2014-04-06 10:25:43', 139, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 176 AND `menus`.`language_id` = 347) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:43', 347, 1, 176, 'MyString', '2014-04-06 10:25:43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 102 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title89', 102, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title89')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 102 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title90', 102, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title90')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 102 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title91', 102, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title91')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 102 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title92', 102, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title92')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 176 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 176 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 176 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 0 ORDER BY `menus`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 14ms (ActiveRecord: 4.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (349, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short41' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short41', 'Language41')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User25', '2014-04-06 10:25:43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 25', 'Site Long Text 25', 'Site Short Text 25', 1, '2014-04-06 10:25:43', 1, 350, '2014-02-12 21:54:11', 177, 'Site 25', '2014-04-06 10:25:43', 140, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 177 AND `menus`.`language_id` = 349) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:43', 349, 1, 177, 'MyString', '2014-04-06 10:25:43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 103 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title93', 103, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title93')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 103 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title94', 103, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title94')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 103 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title95', 103, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title95')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 103 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title96', 103, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title96')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"103"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 177 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 177 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 177 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 103 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 177 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 349 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 32ms (Views: 19.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (351, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short42' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short42', 'Language42')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User26', '2014-04-06 10:25:43')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 26', 'Site Long Text 26', 'Site Short Text 26', 1, '2014-04-06 10:25:43', 1, 352, '2014-02-12 21:54:11', 178, 'Site 26', '2014-04-06 10:25:43', 141, 1)[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `sites`
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"351"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 178 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 178 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 178 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `name`, `template`, `tracking_code`) VALUES (351, 'description is here', 'www.test.de', 1, 'Page1', 'ASDASD', 'TRACK')
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 19ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (353, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short43' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short43', 'Language43')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User27', '2014-04-06 10:25:43')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 27', 'Site Long Text 27', 'Site Short Text 27', 1, '2014-04-06 10:25:43', 1, 354, '2014-02-12 21:54:11', 180, 'Site 27', '2014-04-06 10:25:43', 142, 1)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"180"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 180 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 180 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 180 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 180 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 180
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 14ms (ActiveRecord: 3.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (355, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short44' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short44', 'Language44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:43', 'User28', '2014-04-06 10:25:43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 28', 'Site Long Text 28', 'Site Short Text 28', 1, '2014-04-06 10:25:43', 1, 356, '2014-02-12 21:54:11', 181, 'Site 28', '2014-04-06 10:25:43', 143, 1)
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 181 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 181 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 181 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (24.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 53ms (Views: 35.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (357, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short45', 'Language45')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:44', 'User29', '2014-04-06 10:25:44')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 29', 'Site Long Text 29', 'Site Short Text 29', 1, '2014-04-06 10:25:44', 1, 358, '2014-02-12 21:54:11', 182, 'Site 29', '2014-04-06 10:25:44', 144, 1)[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"182"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 182 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 182 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 182 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (4.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 182 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (4.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (20.0ms)
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 54ms (Views: 32.0ms | ActiveRecord: 13.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (359, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short46' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short46', 'Language46')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:44', 'User30', '2014-04-06 10:25:44')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 30', 'Site Long Text 30', 'Site Short Text 30', 1, '2014-04-06 10:25:44', 1, 360, '2014-02-12 21:54:11', 183, 'Site 30', '2014-04-06 10:25:44', 145, 1)[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 183 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 183 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 183 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (22.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 41ms (Views: 26.0ms | ActiveRecord: 8.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (361, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short47' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short47', 'Language47')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:44', 'User31', '2014-04-06 10:25:44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 31', 'Site Long Text 31', 'Site Short Text 31', 1, '2014-04-06 10:25:44', 1, 362, '2014-02-12 21:54:11', 184, 'Site 31', '2014-04-06 10:25:44', 146, 1)
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"184"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 184 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 184 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 184 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 184 ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE (`sites`.`host` = BINARY 'www.test.de' AND `sites`.`id` != 184) LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE (`sites`.`name` = BINARY 'Page1' AND `sites`.`id` != 184) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `sites` SET `name` = 'Page1', `host` = 'www.test.de', `tracking_code` = 'TRACK', `description` = 'description is here' WHERE `sites`.`id` = 184[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 23ms (ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (363, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short48' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short48', 'Language48')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:44', 'User32', '2014-04-06 10:25:44')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 32', 'Site Long Text 32', 'Site Short Text 32', 1, '2014-04-06 10:25:44', 1, 364, '2014-02-12 21:54:11', 185, 'Site 32', '2014-04-06 10:25:44', 147, 1)
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 185 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 185 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 185 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites`
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 363 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 185
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 28ms (Views: 15.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (365, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short49' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short49', 'Language49')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:44', 'User33', '2014-04-06 10:25:44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 33', 'Site Long Text 33', 'Site Short Text 33', 1, '2014-04-06 10:25:44', 1, 366, '2014-02-12 21:54:11', 186, 'Site 33', '2014-04-06 10:25:44', 148, 1)
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 186 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 186 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 186 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 0 ORDER BY `sites`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 12ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (367, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short50' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short50', 'Language50')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:44', 'User34', '2014-04-06 10:25:44')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 34', 'Site Long Text 34', 'Site Short Text 34', 1, '2014-04-06 10:25:44', 1, 368, '2014-02-12 21:54:11', 187, 'Site 34', '2014-04-06 10:25:44', 149, 1)[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"187"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 187 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 187 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 187 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 187 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 367 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 26ms (Views: 12.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (369, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (370, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 370) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 370) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 2' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (370, 'Site Description 2', 'www.domain2.com', 1, 0, 'Site 2', 'TRACKING CODE 2')[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain2.com' ORDER BY `sites`.`id` ASC LIMIT 1
Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (371, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 371) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 371) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 3' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (371, 'Site Description 3', 'www.domain3.com', 1, 0, 'Site 3', 'TRACKING CODE 3')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 192 AND `menus`.`language_id` = 371) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:44', 371, 1, 192, 'MyString', '2014-04-06 10:25:44')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 104 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title97', 104, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title97')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain3.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'en' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 371 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 192 AND `menus`.`language_id` = 371 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 371 LIMIT 1 [["id", 371]]
Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 3.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (372, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (5.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (373, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites`[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 194
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 5ms (Views: 1.0ms | ActiveRecord: 2.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (374, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 374) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 374) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (374, 'Site Description 4', 'www.domain4.com', 1, 0, 'Site 4', 'TRACKING CODE 4')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 374) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 374) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'RedirectSite' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `host`, `is_active`, `name`, `redirect_to_id`) VALUES (374, 'redirect.host', 1, 'RedirectSite', 196)[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'redirect.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 196 LIMIT 1[0m
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 2.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (375, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 198 AND `menus`.`language_id` = 375) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:44', 375, 1, 198, 'MyString', '2014-04-06 10:25:44')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 105 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title98', 105, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title98')
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:25:44 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 198 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 375 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 105 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 105 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 375 LIMIT 1[0m [["id", 375]]
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 105 AND `menu_items`.`parent_id` = 327 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (10.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (14.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 198[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 375 LIMIT 1 [["id", 375]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (313.0ms)
Completed 200 OK in 434ms (Views: 427.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (376, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:25:45 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:25:45 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (377, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short51', 'Language51')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User35', '2014-04-06 10:25:45')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 35', 'Site Long Text 35', 'Site Short Text 35', 1, '2014-04-06 10:25:45', 1, 378, '2014-02-12 21:54:11', 200, 'Site 35', '2014-04-06 10:25:45', 150, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 200 AND `menus`.`language_id` = 377) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:45', 377, 1, 200, 'MyString', '2014-04-06 10:25:45')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 106 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title99', 106, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title99')
[1m[36mSavepoint (10.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (379, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short52' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short52', 'Language52')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User36', '2014-04-06 10:25:45')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 36', 'Site Long Text 36', 'Site Short Text 36', 1, '2014-04-06 10:25:45', 1, 380, '2014-02-12 21:54:11', 201, 'Site 36', '2014-04-06 10:25:45', 151, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 201 AND `menus`.`language_id` = 379) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:45', 379, 1, 201, 'MyString', '2014-04-06 10:25:45')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 107 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title100', 107, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title100')[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:25:45 +0200
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (381, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short53', 'Language53')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User37', '2014-04-06 10:25:45')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (8.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:25:45', 1, 382, '2014-04-06 10:25:45', 202, 'asd123', '2014-04-06 10:25:45', 152)[0m
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:25:45', 1, 382, '2014-04-06 10:25:45', 202, 'asd123', '2014-04-06 10:25:45', 152)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (383, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short54', 'Language54')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User38', '2014-04-06 10:25:45')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:25:45', 1, 384, '2014-04-06 10:25:45', 203, 'asd123', '2014-04-06 10:25:45', 153)
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:25:45', 1, 384, '2014-04-06 10:25:45', 203, 'asd123', '2014-04-06 10:25:45', 153)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (385, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short55', 'Language55')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User39', '2014-04-06 10:25:45')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:25:45', 1, 386, '2014-04-06 10:25:45', 204, 'asd123', '2014-04-06 10:25:45', 154)[0m
ActiveRecord::JDBCError: Field 'body_short' doesn't have a default value: INSERT INTO `contents` (`body`, `body_filtered`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:25:45', 1, 386, '2014-04-06 10:25:45', 204, 'asd123', '2014-04-06 10:25:45', 154)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (4.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (387, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short56' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short56', 'Language56')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User40', '2014-04-06 10:25:45')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 37', 'Site Long Text 37', 'Site Short Text 37', 1, '2014-04-06 10:25:45', 1, 388, '2014-02-12 21:54:11', 205, 'Site 37', '2014-04-06 10:25:45', 155, 1)
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35mSavepoint (5.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (4.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (389, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short57', 'Language57')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:45', 'User41', '2014-04-06 10:25:45')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 38', 'Site Long Text 38', 'Site Short Text 38', 1, '2014-04-06 10:25:45', 1, 390, '2014-02-12 21:54:11', 206, 'Site 38', '2014-04-06 10:25:45', 156, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 206 AND `menus`.`language_id` = 389) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:45', 389, 1, 206, 'MyString', '2014-04-06 10:25:45')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 108 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title101', 108, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title101')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 389) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 389) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 5' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (389, 'Site Description 5', 'www.domain5.com', 1, 0, 'Site 5', 'TRACKING CODE 5')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain5.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 207 AND `menus`.`language_id` = 389 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 3.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (391, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short58', 'Language58')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User42', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 39', 'Site Long Text 39', 'Site Short Text 39', 1, '2014-04-06 10:25:46', 1, 392, '2014-02-12 21:54:11', 208, 'Site 39', '2014-04-06 10:25:46', 157, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 208 AND `menus`.`language_id` = 391) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:46', 391, 1, 208, 'MyString', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 109 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title102', 109, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title102')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 109 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 109 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 109 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_data` = '---\nurl: http://www.planetech.de\n', `position` = 2 WHERE `menu_items`.`id` = 331
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 208 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 391 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 109 LIMIT 1
Redirected to http://www.planetech.de
Completed 302 Found in 17ms (ActiveRecord: 2.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (393, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short59' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short59', 'Language59')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User43', '2014-04-06 10:25:46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 40', 'Site Long Text 40', 'Site Short Text 40', 1, '2014-04-06 10:25:46', 1, 394, '2014-02-12 21:54:11', 209, 'Site 40', '2014-04-06 10:25:46', 158, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 209 AND `menus`.`language_id` = 393) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:46', 393, 1, 209, 'MyString', '2014-04-06 10:25:46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 110 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title103', 110, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title103')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 209 AND `menus`.`language_id` = 393 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 393 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 209
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 393 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` IS NULL ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 393 LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 209 AND `menus`.`language_id` = 393 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 393 LIMIT 1[0m
Redirected to http://test.host/de
Completed 302 Found in 17ms (ActiveRecord: 3.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (395, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short60', 'Language60')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User44', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 41', 'Site Long Text 41', 'Site Short Text 41', 1, '2014-04-06 10:25:46', 1, 396, '2014-02-12 21:54:11', 210, 'Site 41', '2014-04-06 10:25:46', 159, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 210 AND `menus`.`language_id` = 395) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:46', 395, 1, 210, 'MyString', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title104', 111, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title104')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short61', 'Language61')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User45', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 42', 'Site Long Text 42', 'Site Short Text 42', 1, '2014-04-06 10:25:46', 1, 397, '2014-02-12 21:54:11', 210, 'Site 42', '2014-04-06 10:25:46', 160, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short62', 'Language62')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User46', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 43', 'Site Long Text 43', 'Site Short Text 43', 1, '2014-04-06 10:25:46', 1, 398, '2014-02-12 21:54:11', 210, 'Site 43', '2014-04-06 10:25:46', 161, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title105', 111, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title105')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 334
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 210 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 395 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`full_path` = 'title105' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 111 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (2.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 210 AND `contents`.`language_id` = 395 ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (7.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 111 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 395 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`parent_id` = 333 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 111 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 395 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 111 AND `menu_items`.`parent_id` = 334 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (16.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 210
[1m[36mOdania::Language Load (4.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 395 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (8.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 55ms (Views: 29.0ms | ActiveRecord: 17.0ms)
[1m[35mSavepoint (3.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (399, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short63' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short63', 'Language63')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User47', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (5.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 44', 'Site Long Text 44', 'Site Short Text 44', 1, '2014-04-06 10:25:46', 1, 400, '2014-02-12 21:54:11', 211, 'Site 44', '2014-04-06 10:25:46', 162, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 211 AND `menus`.`language_id` = 399) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:46', 399, 1, 211, 'MyString', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title106', 112, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title106')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short64', 'Language64')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User48', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 45', 'Site Long Text 45', 'Site Short Text 45', 1, '2014-04-06 10:25:46', 1, 401, '2014-02-12 21:54:11', 211, 'Site 45', '2014-04-06 10:25:46', 163, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short65', 'Language65')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User49', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 46', 'Site Long Text 46', 'Site Short Text 46', 1, '2014-04-06 10:25:46', 1, 402, '2014-02-12 21:54:11', 211, 'Site 46', '2014-04-06 10:25:46', 164, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title107', 112, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title107')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 336
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/154-site-45"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 211 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 399 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`full_path` = 'title107/154-site-45' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`full_path` = 'title107' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 211 AND `contents`.`id` = 154 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 163 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 154 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (21.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (27.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 112 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 399 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`parent_id` = 335 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 112 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 399 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 112 AND `menu_items`.`parent_id` = 336 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (19.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (19.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 211
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 399 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 74ms (Views: 47.0ms | ActiveRecord: 14.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (403, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short66', 'Language66')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User50', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 47', 'Site Long Text 47', 'Site Short Text 47', 1, '2014-04-06 10:25:46', 1, 404, '2014-02-12 21:54:11', 212, 'Site 47', '2014-04-06 10:25:46', 165, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 212 AND `menus`.`language_id` = 403) LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:46', 403, 1, 212, 'MyString', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 113 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title108', 113, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title108')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short67' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short67', 'Language67')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User51', '2014-04-06 10:25:46')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 48', 'Site Long Text 48', 'Site Short Text 48', 1, '2014-04-06 10:25:46', 1, 405, '2014-02-12 21:54:11', 212, 'Site 48', '2014-04-06 10:25:46', 166, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 113 ORDER BY `menu_items`.`id` DESC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 157 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 337[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 337, `updated_at` = '2014-04-06 10:25:46' WHERE `contents`.`id` = 157
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 113 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 113 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 157\n', `position` = 2 WHERE `menu_items`.`id` = 337[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 212 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 403 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 113 AND `menu_items`.`full_path` = 'title108' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 212 AND `contents`.`id` = 157 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 157 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (10.0ms)
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 113 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 113 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 403 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 113 AND `menu_items`.`parent_id` = 337 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (10.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (11.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 212[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 403 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 46ms (Views: 24.0ms | ActiveRecord: 12.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (406, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short68', 'Language68')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User52', '2014-04-06 10:25:46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 49', 'Site Long Text 49', 'Site Short Text 49', 1, '2014-04-06 10:25:46', 1, 407, '2014-02-12 21:54:11', 213, 'Site 49', '2014-04-06 10:25:46', 167, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 213 AND `menus`.`language_id` = 406) LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:46', 406, 1, 213, 'MyString', '2014-04-06 10:25:46')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title109', 114, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title109')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short69', 'Language69')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:46', 'User53', '2014-04-06 10:25:46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 50', 'Site Long Text 50', 'Site Short Text 50', 1, '2014-04-06 10:25:46', 1, 408, '2014-02-12 21:54:11', 213, 'Site 50', '2014-04-06 10:25:46', 168, 1)[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 ORDER BY `menu_items`.`id` DESC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 114 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title110', 114, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title110')[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 159 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 339[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `menu_item_id` = 339, `updated_at` = '2014-04-06 10:25:46' WHERE `contents`.`id` = 159
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 338 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`parent_id` = 338 ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 159\n', `parent_id` = 338, `full_path` = 'title109/title110', `position` = 1 WHERE `menu_items`.`id` = 339[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 213 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 406 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`full_path` = 'title109/title110' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (2.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 213 AND `contents`.`id` = 159 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 168 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 159 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 114 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 406 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`parent_id` = 338 ORDER BY position ASC
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 114 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 406 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 114 AND `menu_items`.`parent_id` = 339 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (16.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 213
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 406 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 57ms (Views: 33.0ms | ActiveRecord: 14.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (409, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short70' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short70', 'Language70')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:47', 'User54', '2014-04-06 10:25:47')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 51', 'Site Long Text 51', 'Site Short Text 51', 1, '2014-04-06 10:25:47', 1, 410, '2014-02-12 21:54:11', 214, 'Site 51', '2014-04-06 10:25:47', 169, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 214 AND `menus`.`language_id` = 409) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:47', 409, 1, 214, 'MyString', '2014-04-06 10:25:47')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 115 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title111', 115, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title111')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 115 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 160 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 340[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 340, `updated_at` = '2014-04-06 10:25:47' WHERE `contents`.`id` = 160
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 115 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 115 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 160\n', `position` = 2 WHERE `menu_items`.`id` = 340[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `body` = 'This is a #ABC-Tag test', `menu_item_id` = 340, `body_filtered` = 'This is a ABC-Tag test', `updated_at` = '2014-04-06 10:25:47' WHERE `contents`.`id` = 160
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'ABC-Tag' AND `tags`.`site_id` = 214 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('ABC-Tag', 214)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 3 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 160 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 160, 'Odania::Content', 3)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 3 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 3
[1m[36mSQL (1.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 3[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 214 AND `menus`.`language_id` = 409 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 409 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 214 AND `tags`.`name` = 'ABC-Tag' ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 3 LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 3
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 160 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 340 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 115 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 409 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 115 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 115 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 409 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 115 AND `menu_items`.`parent_id` = 340 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (8.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (9.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 214[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 409 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 57ms (Views: 31.0ms | ActiveRecord: 13.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (411, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short71', 'Language71')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:47', 'User55', '2014-04-06 10:25:47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 52', 'Site Long Text 52', 'Site Short Text 52', 1, '2014-04-06 10:25:47', 1, 412, '2014-02-12 21:54:11', 215, 'Site 52', '2014-04-06 10:25:47', 170, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 215 AND `menus`.`language_id` = 411) LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:47', 411, 1, 215, 'MyString', '2014-04-06 10:25:47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 116 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title112', 116, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title112')[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 215 AND `menus`.`language_id` = 411 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 411 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 215 AND `tags`.`name` = 'ABC' ORDER BY `tags`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (3.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 116 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 116 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 411 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 116 AND `menu_items`.`parent_id` = 341 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (8.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (9.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 215[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 411 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 34ms (Views: 21.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (413, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short72' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short72', 'Language72')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:25:47', 'User56', '2014-04-06 10:25:47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 53', 'Site Long Text 53', 'Site Short Text 53', 1, '2014-04-06 10:25:47', 1, 414, '2014-02-12 21:54:11', 216, 'Site 53', '2014-04-06 10:25:47', 171, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 216 AND `menus`.`language_id` = 413) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:25:47', 413, 1, 216, 'MyString', '2014-04-06 10:25:47')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 117 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title113', 117, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title113')[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 216 AND `menus`.`language_id` = 413 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 413 LIMIT 1[0m
[1m[35mOdania::Tag Exists (1.0ms)[0m SELECT 1 AS one FROM `tags` WHERE `tags`.`site_id` = 216 LIMIT 1
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 117 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 117 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 413 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 117 AND `menu_items`.`parent_id` = 342 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (11.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (14.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 216[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 413 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 39ms (Views: 19.0ms | ActiveRecord: 11.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (4.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (415, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short1' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short1', 'Language1')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:25', 'User1', '2014-04-06 10:27:25')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 1', 'Site Long Text 1', 'Site Short Text 1', 1, '2014-04-06 10:27:25', 1, 416, '2014-02-12 21:54:11', 217, 'Site 1', '2014-04-06 10:27:25', 172, 1)
[1m[36mOdania::Language Exists (5.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short2' LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short2', 'Language2')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 217 AND `menus`.`language_id` = 415) LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:26', 415, 1, 217, 'MyString', '2014-04-06 10:27:26')[0m
[1m[35mOdania::MenuItem Load (6.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 118 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title1', 118, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title1')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 118 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title2', 118, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title2')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 118 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title3', 118, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title3')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 118 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title4', 118, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title4')[0m
[1m[35m (2.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:27:26 +0200", "language_id"=>"417", "site_id"=>"217"}, "menu_id"=>"118"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (17.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 217 AND `menus`.`id` = 118 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`name` = 'Admin' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:26', 'Admin', '2014-04-06 10:27:26')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('ContentBody', 'ContentBody', 'Short', '2014-04-06 10:27:26', 1, 417, '2014-04-06 10:27:26', 217, 'Test Title', '2014-04-06 10:27:26', 173)
Redirected to http://test.host/admin/odania/menus/118/contents
Completed 302 Found in 58ms (ActiveRecord: 21.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `contents`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (418, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short3' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short3', 'Language3')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:26', 'User2', '2014-04-06 10:27:26')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 2', 'Site Long Text 2', 'Site Short Text 2', 1, '2014-04-06 10:27:26', 1, 419, '2014-02-12 21:54:11', 218, 'Site 2', '2014-04-06 10:27:26', 174, 1)
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short4', 'Language4')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 218 AND `menus`.`language_id` = 418) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:26', 418, 1, 218, 'MyString', '2014-04-06 10:27:26')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 119 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title5', 119, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title5')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 119 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title6', 119, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title6')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 119 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title7', 119, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title7')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 119 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title8', 119, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title8')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"165", "menu_id"=>"119"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 218 AND `menus`.`id` = 119 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 165 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`ref_id` = 165 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `contents` WHERE `contents`.`id` = 165[0m
Redirected to http://test.host/admin/odania/menus/119/contents
Completed 302 Found in 32ms (ActiveRecord: 6.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (421, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short5' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short5', 'Language5')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:26', 'User3', '2014-04-06 10:27:26')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 3', 'Site Long Text 3', 'Site Short Text 3', 1, '2014-04-06 10:27:26', 1, 422, '2014-02-12 21:54:11', 219, 'Site 3', '2014-04-06 10:27:26', 175, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short6' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short6', 'Language6')
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 219 AND `menus`.`language_id` = 421) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:26', 421, 1, 219, 'MyString', '2014-04-06 10:27:26')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 120 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title9', 120, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title9')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 120 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title10', 120, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 120 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title11', 120, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title11')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 120 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title12', 120, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title12')
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"166", "menu_id"=>"120"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 219 AND `menus`.`id` = 120 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 166 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (38.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 213ms (Views: 178.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (424, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short7' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short7', 'Language7')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:27', 'User4', '2014-04-06 10:27:27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 4', 'Site Long Text 4', 'Site Short Text 4', 1, '2014-04-06 10:27:27', 1, 425, '2014-02-12 21:54:11', 220, 'Site 4', '2014-04-06 10:27:27', 176, 1)[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short8', 'Language8')
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 220 AND `menus`.`language_id` = 424) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:27', 424, 1, 220, 'MyString', '2014-04-06 10:27:27')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 121 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title13', 121, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 121 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title14', 121, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 121 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title15', 121, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title15')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 121 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title16', 121, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title16')
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"121"}
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 220 AND `menus`.`id` = 121 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (3.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 424 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (3.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (35.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 67ms (Views: 46.0ms | ActiveRecord: 11.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (427, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short9' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short9', 'Language9')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:27', 'User5', '2014-04-06 10:27:27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 5', 'Site Long Text 5', 'Site Short Text 5', 1, '2014-04-06 10:27:27', 1, 428, '2014-02-12 21:54:11', 221, 'Site 5', '2014-04-06 10:27:27', 177, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short10' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short10', 'Language10')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 221 AND `menus`.`language_id` = 427) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:27', 427, 1, 221, 'MyString', '2014-04-06 10:27:27')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 122 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title17', 122, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title17')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 122 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title18', 122, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title18')
[1m[36mOdania::MenuItem Load (5.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 122 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title19', 122, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title19')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 122 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title20', 122, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title20')
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"428"}, "id"=>"168", "menu_id"=>"122"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 221 AND `menus`.`id` = 122 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 168 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `title` = 'Test Title', `body` = 'ContentBody', `body_short` = 'Short', `body_filtered` = 'ContentBody', `updated_at` = '2014-04-06 10:27:27' WHERE `contents`.`id` = 168[0m
Redirected to http://test.host/admin/odania/menus/122/contents
Completed 302 Found in 30ms (ActiveRecord: 5.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (430, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short11' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short11', 'Language11')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:27', 'User6', '2014-04-06 10:27:27')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 6', 'Site Long Text 6', 'Site Short Text 6', 1, '2014-04-06 10:27:27', 1, 431, '2014-02-12 21:54:11', 222, 'Site 6', '2014-04-06 10:27:27', 178, 1)
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short12' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short12', 'Language12')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 222 AND `menus`.`language_id` = 430) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:27', 430, 1, 222, 'MyString', '2014-04-06 10:27:27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 123 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title21', 123, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title21')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 123 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title22', 123, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title22')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 123 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title23', 123, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title23')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 123 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title24', 123, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title24')[0m
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"123"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 222 AND `menus`.`id` = 123 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 430 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (7.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 222 AND `contents`.`language_id` = 430 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 44ms (Views: 22.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (13.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (433, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short13' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short13', 'Language13')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:27', 'User7', '2014-04-06 10:27:27')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 7', 'Site Long Text 7', 'Site Short Text 7', 1, '2014-04-06 10:27:27', 1, 434, '2014-02-12 21:54:11', 223, 'Site 7', '2014-04-06 10:27:27', 179, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short14' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short14', 'Language14')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 223 AND `menus`.`language_id` = 433) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:27', 433, 1, 223, 'MyString', '2014-04-06 10:27:27')[0m
[1m[35mOdania::MenuItem Load (18.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 124 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title25', 124, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title25')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 124 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (11.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title26', 124, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title26')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 124 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title27', 124, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 124 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title28', 124, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title28')[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"124"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 223 AND `menus`.`id` = 124 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 0 ORDER BY `contents`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/124/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 11ms (ActiveRecord: 4.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mSavepoint (2.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (7.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (436, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short15' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short15', 'Language15')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:27', 'User8', '2014-04-06 10:27:27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 8', 'Site Long Text 8', 'Site Short Text 8', 1, '2014-04-06 10:27:27', 1, 437, '2014-02-12 21:54:11', 224, 'Site 8', '2014-04-06 10:27:27', 180, 1)[0m
[1m[35mOdania::Language Exists (8.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short16', 'Language16')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 224 AND `menus`.`language_id` = 436) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:27', 436, 1, 224, 'MyString', '2014-04-06 10:27:27')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 125 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title29', 125, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title29')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 125 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title30', 125, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 125 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title31', 125, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 125 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title32', 125, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title32')
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"171", "menu_id"=>"125"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 224 AND `menus`.`id` = 125 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 171 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 437 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 33ms (Views: 18.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (439, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short17' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short17', 'Language17')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 225 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 225 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 225 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'en' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('en', 'Engilish')
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 20ms (ActiveRecord: 7.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `languages`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (2.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (442, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short18' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short18', 'Language18')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"443"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 226 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 226 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 226 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 443 ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `languages` WHERE `languages`.`id` = 443[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 20ms (ActiveRecord: 6.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
[1m[36mSavepoint (7.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (9.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (444, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short19' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short19', 'Language19')
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"445"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 227 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 227 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 227 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 445 ORDER BY `languages`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (8.0ms)
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 24.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (9.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (446, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short20' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short20', 'Language20')[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 228 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 228 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 228 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (5.0ms)
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 35ms (Views: 20.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (2.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (448, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short21', 'Language21')[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"449"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 229 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 229 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 229 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 449 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'Engilish' AND `languages`.`id` != 449) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'en' AND `languages`.`id` != 449) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `languages` SET `name` = 'Engilish', `iso_639_1` = 'en' WHERE `languages`.`id` = 449
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 25ms (ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (450, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short22' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short22', 'Language22')
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 230 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 230 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 230 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages`
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 38ms (Views: 23.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (31.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (16.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (452, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (5.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short23' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short23', 'Language23')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 231 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 231 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 231 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 0 ORDER BY `languages`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 21ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (454, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short24', 'Language24')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"455"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 232 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 232 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 232 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 455 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 31ms (Views: 15.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (456, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short25' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short25', 'Language25')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:28', 'User9', '2014-04-06 10:27:28')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 9', 'Site Long Text 9', 'Site Short Text 9', 1, '2014-04-06 10:27:28', 1, 457, '2014-02-12 21:54:11', 233, 'Site 9', '2014-04-06 10:27:28', 181, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 233 AND `menus`.`language_id` = 456) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:28', 456, 1, 233, 'MyString', '2014-04-06 10:27:28')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 126 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title33', 126, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 126 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title34', 126, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title34')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 126 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title35', 126, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title35')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 126 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title36', 126, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title36')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 456) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 456) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (2.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 1' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (456, 'Site Description 1', 'www.domain1.com', 1, 0, 'Site 1', 'TRACKING CODE 1')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short26' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short26', 'Language26')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:28', 'User10', '2014-04-06 10:27:28')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 10', 'Site Long Text 10', 'Site Short Text 10', 1, '2014-04-06 10:27:28', 1, 458, '2014-02-12 21:54:11', 234, 'Site 10', '2014-04-06 10:27:28', 182, 1)[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `menu_items`
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"173"}, "menu_id"=>"126"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 233 AND `menus`.`id` = 126 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 173 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` IS NULL
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 126 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 126 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('test-title', 126, 5, 1, '--- !ruby/hash:ActionController::Parameters\nid: \'173\'\n', 'CONTENT', 'Test Title')
Redirected to http://test.host/admin/odania/menus/126/menu_items
Completed 302 Found in 42ms (ActiveRecord: 8.0ms)
[1m[36m (13.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (459, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short27', 'Language27')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:29', 'User11', '2014-04-06 10:27:29')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 11', 'Site Long Text 11', 'Site Short Text 11', 1, '2014-04-06 10:27:29', 1, 460, '2014-02-12 21:54:11', 235, 'Site 11', '2014-04-06 10:27:29', 183, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 235 AND `menus`.`language_id` = 459) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:29', 459, 1, 235, 'MyString', '2014-04-06 10:27:29')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 127 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title37', 127, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title37')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 127 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title38', 127, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title38')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 127 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title39', 127, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title39')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 127 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title40', 127, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title40')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 127 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"380", "menu_id"=>"127"}
[1m[36mOdania::Site Load (4.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 235 AND `menus`.`id` = 127 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 127 AND `menu_items`.`id` = 380 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `menu_items` WHERE `menu_items`.`id` = 380
Redirected to http://test.host/admin/odania/menus/127/menu_items
Completed 302 Found in 17ms (ActiveRecord: 7.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (4.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (10.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (461, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short28' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short28', 'Language28')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:29', 'User12', '2014-04-06 10:27:29')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 12', 'Site Long Text 12', 'Site Short Text 12', 1, '2014-04-06 10:27:29', 1, 462, '2014-02-12 21:54:11', 236, 'Site 12', '2014-04-06 10:27:29', 184, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 236 AND `menus`.`language_id` = 461) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:29', 461, 1, 236, 'MyString', '2014-04-06 10:27:29')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 128 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title41', 128, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 128 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title42', 128, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 128 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title43', 128, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title43')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 128 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title44', 128, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 128 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"384", "menu_id"=>"128"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (4.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 236 AND `menus`.`id` = 128 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 128 AND `menu_items`.`id` = 384 ORDER BY `menu_items`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (1.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (34.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 63ms (Views: 46.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (3.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (463, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short29' LIMIT 1[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short29', 'Language29')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:29', 'User13', '2014-04-06 10:27:29')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 13', 'Site Long Text 13', 'Site Short Text 13', 1, '2014-04-06 10:27:29', 1, 464, '2014-02-12 21:54:11', 237, 'Site 13', '2014-04-06 10:27:29', 185, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 237 AND `menus`.`language_id` = 463) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:29', 463, 1, 237, 'MyString', '2014-04-06 10:27:29')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 129 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title45', 129, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title45')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 129 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title46', 129, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 129 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title47', 129, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title47')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 129 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title48', 129, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title48')[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"129"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 237 AND `menus`.`id` = 129 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 463 LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 237 AND `contents`.`language_id` = 463 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (7.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (22.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 40ms (Views: 29.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (465, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short30' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short30', 'Language30')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:29', 'User14', '2014-04-06 10:27:29')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 14', 'Site Long Text 14', 'Site Short Text 14', 1, '2014-04-06 10:27:29', 1, 466, '2014-02-12 21:54:11', 238, 'Site 14', '2014-04-06 10:27:29', 186, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 238 AND `menus`.`language_id` = 465) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:29', 465, 1, 238, 'MyString', '2014-04-06 10:27:29')
[1m[36mOdania::MenuItem Load (7.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title49', 130, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title49')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title50', 130, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title50')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title51', 130, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title51')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title52', 130, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title52')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"392", "menu_id"=>"130"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 238 AND `menus`.`id` = 130 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 AND `menu_items`.`id` = 392 ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 130 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 130 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `menu_items` SET `target_data` = '--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n', `title` = 'Test Title', `full_path` = 'test-title', `position` = 5 WHERE `menu_items`.`id` = 392[0m
Redirected to http://test.host/admin/odania/menus/130/menu_items
Completed 302 Found in 21ms (ActiveRecord: 5.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 392 LIMIT 1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (467, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short31', 'Language31')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:29', 'User15', '2014-04-06 10:27:29')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 15', 'Site Long Text 15', 'Site Short Text 15', 1, '2014-04-06 10:27:29', 1, 468, '2014-02-12 21:54:11', 239, 'Site 15', '2014-04-06 10:27:29', 187, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 239 AND `menus`.`language_id` = 467) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:29', 467, 1, 239, 'MyString', '2014-04-06 10:27:29')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 131 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title53', 131, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title53')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 131 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title54', 131, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 131 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title55', 131, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 131 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title56', 131, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title56')[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"131"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 239 AND `menus`.`id` = 131 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (5.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 131 ORDER BY parent_id ASC[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 48ms (Views: 29.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (469, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short32' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short32', 'Language32')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:29', 'User16', '2014-04-06 10:27:29')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 16', 'Site Long Text 16', 'Site Short Text 16', 1, '2014-04-06 10:27:29', 1, 470, '2014-02-12 21:54:11', 240, 'Site 16', '2014-04-06 10:27:29', 188, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 240 AND `menus`.`language_id` = 469) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:29', 469, 1, 240, 'MyString', '2014-04-06 10:27:29')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 132 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title57', 132, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title57')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 132 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title58', 132, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title58')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 132 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title59', 132, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title59')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 132 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title60', 132, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title60')[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"132"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 240 AND `menus`.`id` = 132 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 132 AND `menu_items`.`id` = 0 ORDER BY `menu_items`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/132/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 7ms (ActiveRecord: 2.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (471, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short33' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short33', 'Language33')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User17', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 17', 'Site Long Text 17', 'Site Short Text 17', 1, '2014-04-06 10:27:30', 1, 472, '2014-02-12 21:54:11', 241, 'Site 17', '2014-04-06 10:27:30', 189, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 241 AND `menus`.`language_id` = 471) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 471, 1, 241, 'MyString', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 133 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title61', 133, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title61')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 133 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title62', 133, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title62')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 133 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title63', 133, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title63')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 133 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title64', 133, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title64')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 133 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"404", "menu_id"=>"133"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 241 AND `menus`.`id` = 133 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 133 AND `menu_items`.`id` = 404 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 27ms (Views: 15.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (473, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short34' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short34', 'Language34')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User18', '2014-04-06 10:27:30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 18', 'Site Long Text 18', 'Site Short Text 18', 1, '2014-04-06 10:27:30', 1, 474, '2014-02-12 21:54:11', 242, 'Site 18', '2014-04-06 10:27:30', 190, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 242 AND `menus`.`language_id` = 473) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 473, 1, 242, 'MyString', '2014-04-06 10:27:30')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 134 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title65', 134, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title65')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 134 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title66', 134, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title66')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 134 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title67', 134, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title67')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 134 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title68', 134, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title68')
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 242 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 242 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 242 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` IS NULL AND `menus`.`language_id` IS NULL) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `published`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 1, 'Test Title', '2014-04-06 10:27:30')[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 18ms (ActiveRecord: 6.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (475, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short35' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short35', 'Language35')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User19', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 19', 'Site Long Text 19', 'Site Short Text 19', 1, '2014-04-06 10:27:30', 1, 476, '2014-02-12 21:54:11', 243, 'Site 19', '2014-04-06 10:27:30', 191, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 243 AND `menus`.`language_id` = 475) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 475, 1, 243, 'MyString', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 136 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title69', 136, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title69')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 136 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title70', 136, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title70')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 136 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title71', 136, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title71')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 136 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title72', 136, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title72')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"136"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 243 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 243 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 243 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 136 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `menus` WHERE `menus`.`id` = 136
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 12ms (ActiveRecord: 3.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (477, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short36' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short36', 'Language36')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User20', '2014-04-06 10:27:30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 20', 'Site Long Text 20', 'Site Short Text 20', 1, '2014-04-06 10:27:30', 1, 478, '2014-02-12 21:54:11', 244, 'Site 20', '2014-04-06 10:27:30', 192, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 244 AND `menus`.`language_id` = 477) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 477, 1, 244, 'MyString', '2014-04-06 10:27:30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 137 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title73', 137, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title73')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 137 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title74', 137, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title74')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 137 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title75', 137, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title75')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 137 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title76', 137, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title76')
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"137"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 244 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 244 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 244 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 137 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (14.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 42ms (Views: 29.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (479, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short37', 'Language37')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User21', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 21', 'Site Long Text 21', 'Site Short Text 21', 1, '2014-04-06 10:27:30', 1, 480, '2014-02-12 21:54:11', 245, 'Site 21', '2014-04-06 10:27:30', 193, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 245 AND `menus`.`language_id` = 479) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 479, 1, 245, 'MyString', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 138 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title77', 138, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title77')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 138 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title78', 138, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title78')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 138 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title79', 138, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title79')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 138 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title80', 138, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title80')[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 245 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 245 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 245 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (15.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 40ms (Views: 25.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (481, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short38' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short38', 'Language38')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User22', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 22', 'Site Long Text 22', 'Site Short Text 22', 1, '2014-04-06 10:27:30', 1, 482, '2014-02-12 21:54:11', 246, 'Site 22', '2014-04-06 10:27:30', 194, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 246 AND `menus`.`language_id` = 481) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 481, 1, 246, 'MyString', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 139 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title81', 139, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title81')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 139 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title82', 139, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title82')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 139 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title83', 139, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title83')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 139 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title84', 139, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title84')[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"139"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 246 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 246 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 246 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 139 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 246 AND `menus`.`id` != 139 AND `menus`.`language_id` = 481) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menus` SET `title` = 'Test Title', `updated_at` = '2014-04-06 10:27:30' WHERE `menus`.`id` = 139
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 27ms (ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (483, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short39', 'Language39')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:30', 'User23', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 23', 'Site Long Text 23', 'Site Short Text 23', 1, '2014-04-06 10:27:30', 1, 484, '2014-02-12 21:54:11', 247, 'Site 23', '2014-04-06 10:27:30', 195, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 247 AND `menus`.`language_id` = 483) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:30', 483, 1, 247, 'MyString', '2014-04-06 10:27:30')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 140 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title85', 140, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title85')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 140 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title86', 140, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title86')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 140 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title87', 140, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title87')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 140 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title88', 140, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title88')[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 247 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 247 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 247 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (8.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 247 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 247 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 483 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 46ms (Views: 23.0ms | ActiveRecord: 15.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (3.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (485, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short40' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short40', 'Language40')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User24', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 24', 'Site Long Text 24', 'Site Short Text 24', 1, '2014-04-06 10:27:31', 1, 486, '2014-02-12 21:54:11', 248, 'Site 24', '2014-04-06 10:27:31', 196, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 248 AND `menus`.`language_id` = 485) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:31', 485, 1, 248, 'MyString', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 141 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title89', 141, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title89')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 141 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title90', 141, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title90')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 141 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title91', 141, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title91')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 141 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title92', 141, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title92')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 248 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 248 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 248 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 0 ORDER BY `menus`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 14ms (ActiveRecord: 4.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (487, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short41' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short41', 'Language41')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User25', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 25', 'Site Long Text 25', 'Site Short Text 25', 1, '2014-04-06 10:27:31', 1, 488, '2014-02-12 21:54:11', 249, 'Site 25', '2014-04-06 10:27:31', 197, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 249 AND `menus`.`language_id` = 487) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:31', 487, 1, 249, 'MyString', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 142 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title93', 142, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title93')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 142 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title94', 142, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title94')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 142 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title95', 142, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title95')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 142 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title96', 142, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title96')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"142"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 249 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 249 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 249 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 142 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 249 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 487 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 21.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (489, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short42' LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short42', 'Language42')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User26', '2014-04-06 10:27:31')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 26', 'Site Long Text 26', 'Site Short Text 26', 1, '2014-04-06 10:27:31', 1, 490, '2014-02-12 21:54:11', 250, 'Site 26', '2014-04-06 10:27:31', 198, 1)[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `sites`
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"489"}}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 250 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 250 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 250 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `name`, `template`, `tracking_code`) VALUES (489, 'description is here', 'www.test.de', 1, 'Page1', 'ASDASD', 'TRACK')
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 19ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (491, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short43' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short43', 'Language43')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User27', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 27', 'Site Long Text 27', 'Site Short Text 27', 1, '2014-04-06 10:27:31', 1, 492, '2014-02-12 21:54:11', 252, 'Site 27', '2014-04-06 10:27:31', 199, 1)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"252"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 252 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 252 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 252 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 252 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 252
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 15ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (493, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short44' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short44', 'Language44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User28', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 28', 'Site Long Text 28', 'Site Short Text 28', 1, '2014-04-06 10:27:31', 1, 494, '2014-02-12 21:54:11', 253, 'Site 28', '2014-04-06 10:27:31', 200, 1)
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 253 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 253 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 253 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (3.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (26.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 55ms (Views: 33.0ms | ActiveRecord: 10.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (3.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (495, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short45', 'Language45')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User29', '2014-04-06 10:27:31')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 29', 'Site Long Text 29', 'Site Short Text 29', 1, '2014-04-06 10:27:31', 1, 496, '2014-02-12 21:54:11', 254, 'Site 29', '2014-04-06 10:27:31', 201, 1)[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"254"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 254 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 254 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 254 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 254 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (19.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.0ms)
Completed 200 OK in 45ms (Views: 32.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (497, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short46' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short46', 'Language46')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User30', '2014-04-06 10:27:31')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 30', 'Site Long Text 30', 'Site Short Text 30', 1, '2014-04-06 10:27:31', 1, 498, '2014-02-12 21:54:11', 255, 'Site 30', '2014-04-06 10:27:31', 202, 1)[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 255 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 255 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 255 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (21.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 42ms (Views: 27.0ms | ActiveRecord: 10.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (499, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short47' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short47', 'Language47')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User31', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 31', 'Site Long Text 31', 'Site Short Text 31', 1, '2014-04-06 10:27:31', 1, 500, '2014-02-12 21:54:11', 256, 'Site 31', '2014-04-06 10:27:31', 203, 1)
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"256"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 256 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 256 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 256 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (3.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 256 ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE (`sites`.`host` = BINARY 'www.test.de' AND `sites`.`id` != 256) LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE (`sites`.`name` = BINARY 'Page1' AND `sites`.`id` != 256) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `sites` SET `name` = 'Page1', `host` = 'www.test.de', `tracking_code` = 'TRACK', `description` = 'description is here' WHERE `sites`.`id` = 256[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 25ms (ActiveRecord: 9.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (501, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short48' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short48', 'Language48')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:31', 'User32', '2014-04-06 10:27:31')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 32', 'Site Long Text 32', 'Site Short Text 32', 1, '2014-04-06 10:27:31', 1, 502, '2014-02-12 21:54:11', 257, 'Site 32', '2014-04-06 10:27:31', 204, 1)
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 257 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 257 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 257 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites`
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 501 LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 257
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 27ms (Views: 15.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (503, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short49' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short49', 'Language49')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:32', 'User33', '2014-04-06 10:27:32')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 33', 'Site Long Text 33', 'Site Short Text 33', 1, '2014-04-06 10:27:32', 1, 504, '2014-02-12 21:54:11', 258, 'Site 33', '2014-04-06 10:27:32', 205, 1)
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (3.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 258 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 258 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 258 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 0 ORDER BY `sites`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 15ms (ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (2.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (505, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short50' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short50', 'Language50')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:32', 'User34', '2014-04-06 10:27:32')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 34', 'Site Long Text 34', 'Site Short Text 34', 1, '2014-04-06 10:27:32', 1, 506, '2014-02-12 21:54:11', 259, 'Site 34', '2014-04-06 10:27:32', 206, 1)[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"259"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 259 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 259 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 259 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 259 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 505 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 23ms (Views: 10.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (507, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (508, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 508) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 508) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (508, 'Site Description 2', 'www.domain2.com', 1, 0, 'Site 2', 'TRACKING CODE 2')[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain2.com' ORDER BY `sites`.`id` ASC LIMIT 1
Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (509, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 509) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 509) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (509, 'Site Description 3', 'www.domain3.com', 1, 0, 'Site 3', 'TRACKING CODE 3')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 264 AND `menus`.`language_id` = 509) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:32', 509, 1, 264, 'MyString', '2014-04-06 10:27:32')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 143 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title97', 143, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title97')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain3.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'en' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 509 LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 264 AND `menus`.`language_id` = 509 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 509 LIMIT 1 [["id", 509]]
Completed 200 OK in 13ms (Views: 0.0ms | ActiveRecord: 3.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (3.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (510, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (4.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (511, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites`[0m
[1m[35mSQL (1.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 266
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 7ms (Views: 1.0ms | ActiveRecord: 2.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (512, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 512) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 512) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (512, 'Site Description 4', 'www.domain4.com', 1, 0, 'Site 4', 'TRACKING CODE 4')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 512) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 512) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'RedirectSite' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `host`, `is_active`, `name`, `redirect_to_id`) VALUES (512, 'redirect.host', 1, 'RedirectSite', 268)[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'redirect.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 268 LIMIT 1[0m
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (513, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 270 AND `menus`.`language_id` = 513) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:32', 513, 1, 270, 'MyString', '2014-04-06 10:27:32')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 144 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title98', 144, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title98')
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:27:32 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 270 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 513 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 144 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 144 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 513 LIMIT 1[0m [["id", 513]]
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 144 AND `menu_items`.`parent_id` = 441 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (10.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (14.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 270[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 513 LIMIT 1 [["id", 513]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (329.0ms)
Completed 200 OK in 450ms (Views: 443.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (514, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:27:33 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:27:33 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (4.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (9.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (515, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short51' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short51', 'Language51')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User35', '2014-04-06 10:27:33')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 35', 'Site Long Text 35', 'Site Short Text 35', 1, '2014-04-06 10:27:33', 1, 516, '2014-02-12 21:54:11', 272, 'Site 35', '2014-04-06 10:27:33', 207, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 272 AND `menus`.`language_id` = 515) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:33', 515, 1, 272, 'MyString', '2014-04-06 10:27:33')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 145 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title99', 145, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title99')
[1m[36mSavepoint (8.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (19.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (517, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short52', 'Language52')
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User36', '2014-04-06 10:27:33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 36', 'Site Long Text 36', 'Site Short Text 36', 1, '2014-04-06 10:27:33', 1, 518, '2014-02-12 21:54:11', 273, 'Site 36', '2014-04-06 10:27:33', 208, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 273 AND `menus`.`language_id` = 517) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:33', 517, 1, 273, 'MyString', '2014-04-06 10:27:33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 146 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title100', 146, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title100')[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:27:33 +0200
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (519, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short53', 'Language53')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User37', '2014-04-06 10:27:33')
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:27:33', 1, 520, '2014-04-06 10:27:33', 274, 'asd123', '2014-04-06 10:27:33', 209)[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T1' AND `tags`.`site_id` = 274 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T1', 274)[0m
[1m[35mOdania::TagXref Exists (1.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 4 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 200 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 200, 'Odania::Content', 4)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 4 LIMIT 1
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 4[0m
[1m[35mSQL (1.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 4
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T2' AND `tags`.`site_id` = 274 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T2', 274)
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 5 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 200 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 200, 'Odania::Content', 5)
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 5 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 5
[1m[36mSQL (1.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 5[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags`
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 4[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 5
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (521, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short54' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short54', 'Language54')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User38', '2014-04-06 10:27:33')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:27:33', 1, 522, '2014-04-06 10:27:33', 275, 'asd123', '2014-04-06 10:27:33', 210)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T1' AND `tags`.`site_id` = 275 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T1', 275)
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 6 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 201 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 201, 'Odania::Content', 6)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 6 LIMIT 1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 6
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 6[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T4' AND `tags`.`site_id` = 275 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T4', 275)[0m
[1m[35mOdania::TagXref Exists (1.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 7 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 201 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 201, 'Odania::Content', 7)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 7 LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 7[0m
[1m[35mSQL (1.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 7
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T7' AND `tags`.`site_id` = 275 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T7', 275)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 8 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 201 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 201, 'Odania::Content', 8)
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 8 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 8
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 8[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs`
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `body` = 'This is a body #T1 asdasdsa #T8 lorem #T4 #T1', `body_filtered` = 'This is a body T1 asdasdsa T8 lorem T4 T1', `updated_at` = '2014-04-06 10:27:33' WHERE `contents`.`id` = 201
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T7' AND `tags`.`site_id` = 275 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 8 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 201 AND `tag_xrefs`.`context` = 'tags' ORDER BY `tag_xrefs`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM `tag_xrefs` WHERE `tag_xrefs`.`id` = 8[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 8 LIMIT 1
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 8[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `tags` WHERE `tags`.`id` = 8
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T8' AND `tags`.`site_id` = 275 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T8', 275)
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 9 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 201 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 201, 'Odania::Content', 9)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 9 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 9
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 9[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags`
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 6[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 7
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 9[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (523, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short55' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short55', 'Language55')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User39', '2014-04-06 10:27:33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:27:33', 1, 524, '2014-04-06 10:27:33', 276, 'asd123', '2014-04-06 10:27:33', 211)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T1' AND `tags`.`site_id` = 276 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T1', 276)[0m
[1m[35mOdania::TagXref Exists (1.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 10 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 202 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 202, 'Odania::Content', 10)[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 10 LIMIT 1
[1m[36m (10.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 10[0m
[1m[35mSQL (1.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 10
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T4' AND `tags`.`site_id` = 276 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T4', 276)
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 11 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 202 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 202, 'Odania::Content', 11)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 11 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 11
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 11[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T7' AND `tags`.`site_id` = 276 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T7', 276)[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 12 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 202 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 202, 'Odania::Content', 12)[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 12 LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 12[0m
[1m[35mSQL (1.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 12
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags`[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 10
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 11[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 12
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `body` = 'This is a body #T1 asdasdsa #T7', `body_filtered` = 'This is a body T1 asdasdsa T7', `updated_at` = '2014-04-06 10:27:33' WHERE `contents`.`id` = 202[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T4' AND `tags`.`site_id` = 276 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Load (1.0ms)[0m [1mSELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 11 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 202 AND `tag_xrefs`.`context` = 'tags' ORDER BY `tag_xrefs`.`id` ASC LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m DELETE FROM `tag_xrefs` WHERE `tag_xrefs`.`id` = 11
[1m[36mOdania::Tag Load (4.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 11 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 11
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `tags` WHERE `tags`.`id` = 11[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags`
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 10[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 12
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (525, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short56' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short56', 'Language56')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User40', '2014-04-06 10:27:33')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 37', 'Site Long Text 37', 'Site Short Text 37', 1, '2014-04-06 10:27:33', 1, 526, '2014-02-12 21:54:11', 277, 'Site 37', '2014-04-06 10:27:33', 212, 1)
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (5.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (527, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (7.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short57', 'Language57')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:33', 'User41', '2014-04-06 10:27:33')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 38', 'Site Long Text 38', 'Site Short Text 38', 1, '2014-04-06 10:27:33', 1, 528, '2014-02-12 21:54:11', 278, 'Site 38', '2014-04-06 10:27:33', 213, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 278 AND `menus`.`language_id` = 527) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:33', 527, 1, 278, 'MyString', '2014-04-06 10:27:33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 147 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title101', 147, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title101')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 527) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 527) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 5' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (527, 'Site Description 5', 'www.domain5.com', 1, 0, 'Site 5', 'TRACKING CODE 5')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain5.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 279 AND `menus`.`language_id` = 527 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 5.0ms)
[1m[35mSavepoint (6.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (529, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short58' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short58', 'Language58')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User42', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 39', 'Site Long Text 39', 'Site Short Text 39', 1, '2014-04-06 10:27:34', 1, 530, '2014-02-12 21:54:11', 280, 'Site 39', '2014-04-06 10:27:34', 214, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 280 AND `menus`.`language_id` = 529) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:34', 529, 1, 280, 'MyString', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 148 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title102', 148, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title102')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 148 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 148 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 148 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menu_items` SET `target_data` = '---\nurl: http://www.planetech.de\n', `position` = 2 WHERE `menu_items`.`id` = 445
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 280 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 529 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 148 LIMIT 1
Redirected to http://www.planetech.de
Completed 302 Found in 16ms (ActiveRecord: 2.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (531, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short59' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short59', 'Language59')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User43', '2014-04-06 10:27:34')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 40', 'Site Long Text 40', 'Site Short Text 40', 1, '2014-04-06 10:27:34', 1, 532, '2014-02-12 21:54:11', 281, 'Site 40', '2014-04-06 10:27:34', 215, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 281 AND `menus`.`language_id` = 531) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:34', 531, 1, 281, 'MyString', '2014-04-06 10:27:34')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 149 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title103', 149, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title103')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 281 AND `menus`.`language_id` = 531 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 531 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 281
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 531 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` IS NULL ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 531 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 281 AND `menus`.`language_id` = 531 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 531 LIMIT 1[0m
Redirected to http://test.host/de
Completed 302 Found in 18ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (3.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (533, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short60', 'Language60')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User44', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 41', 'Site Long Text 41', 'Site Short Text 41', 1, '2014-04-06 10:27:34', 1, 534, '2014-02-12 21:54:11', 282, 'Site 41', '2014-04-06 10:27:34', 216, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 282 AND `menus`.`language_id` = 533) LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:34', 533, 1, 282, 'MyString', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title104', 150, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title104')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short61' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short61', 'Language61')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User45', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 42', 'Site Long Text 42', 'Site Short Text 42', 1, '2014-04-06 10:27:34', 1, 535, '2014-02-12 21:54:11', 282, 'Site 42', '2014-04-06 10:27:34', 217, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short62', 'Language62')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User46', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 43', 'Site Long Text 43', 'Site Short Text 43', 1, '2014-04-06 10:27:34', 1, 536, '2014-02-12 21:54:11', 282, 'Site 43', '2014-04-06 10:27:34', 218, 1)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title105', 150, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title105')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 448
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 282 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 533 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`full_path` = 'title105' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 150 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (2.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 282 AND `contents`.`language_id` = 533 ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (18.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 150 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 533 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`parent_id` = 447 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 150 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 533 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 150 AND `menu_items`.`parent_id` = 448 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (17.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (18.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 282
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 533 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 62ms (Views: 42.0ms | ActiveRecord: 12.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (3.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (537, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short63' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short63', 'Language63')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User47', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 44', 'Site Long Text 44', 'Site Short Text 44', 1, '2014-04-06 10:27:34', 1, 538, '2014-02-12 21:54:11', 283, 'Site 44', '2014-04-06 10:27:34', 219, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 283 AND `menus`.`language_id` = 537) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:34', 537, 1, 283, 'MyString', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title106', 151, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title106')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short64' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short64', 'Language64')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User48', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 45', 'Site Long Text 45', 'Site Short Text 45', 1, '2014-04-06 10:27:34', 1, 539, '2014-02-12 21:54:11', 283, 'Site 45', '2014-04-06 10:27:34', 220, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short65' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short65', 'Language65')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User49', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 46', 'Site Long Text 46', 'Site Short Text 46', 1, '2014-04-06 10:27:34', 1, 540, '2014-02-12 21:54:11', 283, 'Site 46', '2014-04-06 10:27:34', 221, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title107', 151, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title107')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 450
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/211-site-45"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 283 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 537 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`full_path` = 'title107/211-site-45' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`full_path` = 'title107' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 283 AND `contents`.`id` = 211 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 211 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (17.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (22.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 151 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 537 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`parent_id` = 449 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
[1m[36mOdania::Menu Load (4.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 151 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 537 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 151 AND `menu_items`.`parent_id` = 450 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (19.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (20.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 283
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 537 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 70ms (Views: 41.0ms | ActiveRecord: 18.0ms)
[1m[35mSavepoint (9.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (541, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short66' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short66', 'Language66')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User50', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 47', 'Site Long Text 47', 'Site Short Text 47', 1, '2014-04-06 10:27:34', 1, 542, '2014-02-12 21:54:11', 284, 'Site 47', '2014-04-06 10:27:34', 222, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 284 AND `menus`.`language_id` = 541) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:34', 541, 1, 284, 'MyString', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 152 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title108', 152, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title108')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short67', 'Language67')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User51', '2014-04-06 10:27:34')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 48', 'Site Long Text 48', 'Site Short Text 48', 1, '2014-04-06 10:27:34', 1, 543, '2014-02-12 21:54:11', 284, 'Site 48', '2014-04-06 10:27:34', 223, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 152 ORDER BY `menu_items`.`id` DESC LIMIT 1[0m
[1m[35mOdania::Content Load (0.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 214 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 451[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 451, `updated_at` = '2014-04-06 10:27:34' WHERE `contents`.`id` = 214
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 152 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 152 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 214\n', `position` = 2 WHERE `menu_items`.`id` = 451[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 284 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 541 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 152 AND `menu_items`.`full_path` = 'title108' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 284 AND `contents`.`id` = 214 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 223 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 214 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (10.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 152 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 152 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 541 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 152 AND `menu_items`.`parent_id` = 451 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (10.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (11.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 284[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 541 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 46ms (Views: 23.0ms | ActiveRecord: 11.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (544, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short68' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short68', 'Language68')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User52', '2014-04-06 10:27:34')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 49', 'Site Long Text 49', 'Site Short Text 49', 1, '2014-04-06 10:27:34', 1, 545, '2014-02-12 21:54:11', 285, 'Site 49', '2014-04-06 10:27:34', 224, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 285 AND `menus`.`language_id` = 544) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:34', 544, 1, 285, 'MyString', '2014-04-06 10:27:34')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title109', 153, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title109')[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short69', 'Language69')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:34', 'User53', '2014-04-06 10:27:34')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 50', 'Site Long Text 50', 'Site Short Text 50', 1, '2014-04-06 10:27:34', 1, 546, '2014-02-12 21:54:11', 285, 'Site 50', '2014-04-06 10:27:34', 225, 1)[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 ORDER BY `menu_items`.`id` DESC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 153 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title110', 153, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title110')[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 216 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 453[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `menu_item_id` = 453, `updated_at` = '2014-04-06 10:27:34' WHERE `contents`.`id` = 216
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 452 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`parent_id` = 452 ORDER BY position DESC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 216\n', `parent_id` = 452, `full_path` = 'title109/title110', `position` = 1 WHERE `menu_items`.`id` = 453[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (4.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 285 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 544 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`full_path` = 'title109/title110' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 285 AND `contents`.`id` = 216 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 216 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (7.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 153 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 544 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (3.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`parent_id` = 452 ORDER BY position ASC
[1m[36mOdania::Menu Load (3.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 153 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 544 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 153 AND `menu_items`.`parent_id` = 453 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (15.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (23.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (24.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 285
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 544 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 65ms (Views: 35.0ms | ActiveRecord: 19.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (547, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short70', 'Language70')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:35', 'User54', '2014-04-06 10:27:35')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 51', 'Site Long Text 51', 'Site Short Text 51', 1, '2014-04-06 10:27:35', 1, 548, '2014-02-12 21:54:11', 286, 'Site 51', '2014-04-06 10:27:35', 226, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 286 AND `menus`.`language_id` = 547) LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:35', 547, 1, 286, 'MyString', '2014-04-06 10:27:35')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 154 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title111', 154, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title111')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 154 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 217 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 454[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `menu_item_id` = 454, `updated_at` = '2014-04-06 10:27:35' WHERE `contents`.`id` = 217
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 154 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 154 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 217\n', `position` = 2 WHERE `menu_items`.`id` = 454[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `body` = 'This is a #ABC-Tag test', `menu_item_id` = 454, `body_filtered` = 'This is a ABC-Tag test', `updated_at` = '2014-04-06 10:27:35' WHERE `contents`.`id` = 217
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'ABC-Tag' AND `tags`.`site_id` = 286 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('ABC-Tag', 286)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 13 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 217 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (11.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 217, 'Odania::Content', 13)
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 13 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 13
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 13[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 286 AND `menus`.`language_id` = 547 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 547 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 286 AND `tags`.`name` = 'ABC-Tag' ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 13 LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 13
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 217 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 454 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 154 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 547 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 154 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (3.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 154 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 547 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 154 AND `menu_items`.`parent_id` = 454 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (10.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (12.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 286[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 547 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 55ms (Views: 27.0ms | ActiveRecord: 14.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (549, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short71', 'Language71')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:35', 'User55', '2014-04-06 10:27:35')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 52', 'Site Long Text 52', 'Site Short Text 52', 1, '2014-04-06 10:27:35', 1, 550, '2014-02-12 21:54:11', 287, 'Site 52', '2014-04-06 10:27:35', 227, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 287 AND `menus`.`language_id` = 549) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:35', 549, 1, 287, 'MyString', '2014-04-06 10:27:35')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 155 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title112', 155, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title112')[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 287 AND `menus`.`language_id` = 549 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 549 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 287 AND `tags`.`name` = 'ABC' ORDER BY `tags`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (3.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 155 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 155 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 549 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 155 AND `menu_items`.`parent_id` = 455 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 287[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 549 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 404 Not Found in 39ms (Views: 21.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (551, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short72', 'Language72')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:27:35', 'User56', '2014-04-06 10:27:35')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 53', 'Site Long Text 53', 'Site Short Text 53', 1, '2014-04-06 10:27:35', 1, 552, '2014-02-12 21:54:11', 288, 'Site 53', '2014-04-06 10:27:35', 228, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 288 AND `menus`.`language_id` = 551) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:27:35', 551, 1, 288, 'MyString', '2014-04-06 10:27:35')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 156 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title113', 156, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title113')[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 288 AND `menus`.`language_id` = 551 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 551 LIMIT 1[0m
[1m[35mOdania::Tag Exists (4.0ms)[0m SELECT 1 AS one FROM `tags` WHERE `tags`.`site_id` = 288 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 156 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 156 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 551 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 156 AND `menu_items`.`parent_id` = 456 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (10.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (12.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 288[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 551 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 42ms (Views: 21.0ms | ActiveRecord: 12.0ms)
[1m[36mSavepoint (7.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mSavepoint (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (553, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short1' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short1', 'Language1')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:05', 'User1', '2014-04-06 10:28:05')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 1', 'Site Long Text 1', 'Site Short Text 1', 1, '2014-04-06 10:28:05', 1, 554, '2014-02-12 21:54:11', 289, 'Site 1', '2014-04-06 10:28:05', 229, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short2' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short2', 'Language2')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 289 AND `menus`.`language_id` = 553) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:05', 553, 1, 289, 'MyString', '2014-04-06 10:28:05')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 157 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title1', 157, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title1')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 157 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title2', 157, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title2')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 157 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title3', 157, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title3')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 157 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title4', 157, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title4')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:28:05 +0200", "language_id"=>"555", "site_id"=>"289"}, "menu_id"=>"157"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (5.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 289 AND `menus`.`id` = 157 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`name` = 'Admin' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:05', 'Admin', '2014-04-06 10:28:05')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('ContentBody', 'ContentBody', 'Short', '2014-04-06 10:28:05', 1, 555, '2014-04-06 10:28:05', 289, 'Test Title', '2014-04-06 10:28:05', 230)
Redirected to http://test.host/admin/odania/menus/157/contents
Completed 302 Found in 44ms (ActiveRecord: 9.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `contents`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (556, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short3', 'Language3')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:05', 'User2', '2014-04-06 10:28:05')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 2', 'Site Long Text 2', 'Site Short Text 2', 1, '2014-04-06 10:28:05', 1, 557, '2014-02-12 21:54:11', 290, 'Site 2', '2014-04-06 10:28:05', 231, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short4', 'Language4')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 290 AND `menus`.`language_id` = 556) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:05', 556, 1, 290, 'MyString', '2014-04-06 10:28:05')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 158 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title5', 158, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title5')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 158 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title6', 158, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title6')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 158 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title7', 158, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title7')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 158 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title8', 158, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title8')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `contents`
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"222", "menu_id"=>"158"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 290 AND `menus`.`id` = 158 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 222 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (1.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`ref_id` = 222 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM `contents` WHERE `contents`.`id` = 222[0m
Redirected to http://test.host/admin/odania/menus/158/contents
Completed 302 Found in 32ms (ActiveRecord: 6.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `contents`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (6.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (559, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short5', 'Language5')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:05', 'User3', '2014-04-06 10:28:05')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 3', 'Site Long Text 3', 'Site Short Text 3', 1, '2014-04-06 10:28:05', 1, 560, '2014-02-12 21:54:11', 291, 'Site 3', '2014-04-06 10:28:05', 232, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short6' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short6', 'Language6')
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 291 AND `menus`.`language_id` = 559) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:05', 559, 1, 291, 'MyString', '2014-04-06 10:28:05')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 159 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title9', 159, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title9')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 159 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title10', 159, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 159 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title11', 159, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title11')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 159 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title12', 159, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title12')
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"223", "menu_id"=>"159"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (27.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 291 AND `menus`.`id` = 159 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 223 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (39.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.0ms)
Completed 200 OK in 224ms (Views: 181.0ms | ActiveRecord: 33.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (562, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short7' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short7', 'Language7')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:06', 'User4', '2014-04-06 10:28:06')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 4', 'Site Long Text 4', 'Site Short Text 4', 1, '2014-04-06 10:28:06', 1, 563, '2014-02-12 21:54:11', 292, 'Site 4', '2014-04-06 10:28:06', 233, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short8' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short8', 'Language8')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 292 AND `menus`.`language_id` = 562) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:06', 562, 1, 292, 'MyString', '2014-04-06 10:28:06')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 160 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title13', 160, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 160 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title14', 160, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title14')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 160 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title15', 160, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title15')
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 160 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title16', 160, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title16')
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"160"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 292 AND `menus`.`id` = 160 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 562 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (25.0ms)
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 52ms (Views: 36.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (565, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short9' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short9', 'Language9')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:06', 'User5', '2014-04-06 10:28:06')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 5', 'Site Long Text 5', 'Site Short Text 5', 1, '2014-04-06 10:28:06', 1, 566, '2014-02-12 21:54:11', 293, 'Site 5', '2014-04-06 10:28:06', 234, 1)[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short10' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short10', 'Language10')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 293 AND `menus`.`language_id` = 565) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:06', 565, 1, 293, 'MyString', '2014-04-06 10:28:06')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 161 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title17', 161, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title17')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 161 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title18', 161, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title18')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 161 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title19', 161, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title19')
[1m[36mOdania::MenuItem Load (4.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 161 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title20', 161, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title20')
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"566"}, "id"=>"225", "menu_id"=>"161"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 293 AND `menus`.`id` = 161 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 225 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `title` = 'Test Title', `body` = 'ContentBody', `body_short` = 'Short', `body_filtered` = 'ContentBody', `updated_at` = '2014-04-06 10:28:06' WHERE `contents`.`id` = 225[0m
Redirected to http://test.host/admin/odania/menus/161/contents
Completed 302 Found in 46ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (5.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (568, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short11' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short11', 'Language11')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:06', 'User6', '2014-04-06 10:28:06')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 6', 'Site Long Text 6', 'Site Short Text 6', 1, '2014-04-06 10:28:06', 1, 569, '2014-02-12 21:54:11', 294, 'Site 6', '2014-04-06 10:28:06', 235, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short12', 'Language12')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 294 AND `menus`.`language_id` = 568) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:06', 568, 1, 294, 'MyString', '2014-04-06 10:28:06')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 162 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title21', 162, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title21')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 162 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title22', 162, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title22')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 162 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title23', 162, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title23')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 162 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title24', 162, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title24')[0m
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"162"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 294 AND `menus`.`id` = 162 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 568 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (8.0ms)
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 294 AND `contents`.`language_id` = 568 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 42ms (Views: 22.0ms | ActiveRecord: 6.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (3.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (571, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short13' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short13', 'Language13')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:06', 'User7', '2014-04-06 10:28:06')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 7', 'Site Long Text 7', 'Site Short Text 7', 1, '2014-04-06 10:28:06', 1, 572, '2014-02-12 21:54:11', 295, 'Site 7', '2014-04-06 10:28:06', 236, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short14' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short14', 'Language14')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 295 AND `menus`.`language_id` = 571) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:06', 571, 1, 295, 'MyString', '2014-04-06 10:28:06')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 163 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title25', 163, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title25')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 163 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title26', 163, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title26')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 163 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title27', 163, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title27')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 163 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title28', 163, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title28')[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"163"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 295 AND `menus`.`id` = 163 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 0 ORDER BY `contents`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/163/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 11ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (574, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short15' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short15', 'Language15')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:07', 'User8', '2014-04-06 10:28:07')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 8', 'Site Long Text 8', 'Site Short Text 8', 1, '2014-04-06 10:28:07', 1, 575, '2014-02-12 21:54:11', 296, 'Site 8', '2014-04-06 10:28:07', 237, 1)[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short16' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short16', 'Language16')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 296 AND `menus`.`language_id` = 574) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:07', 574, 1, 296, 'MyString', '2014-04-06 10:28:07')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 164 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title29', 164, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title29')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 164 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title30', 164, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title30')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 164 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title31', 164, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title31')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 164 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title32', 164, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title32')
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"228", "menu_id"=>"164"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 296 AND `menus`.`id` = 164 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (1.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 228 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 575 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 28ms (Views: 16.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (4.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (577, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short17' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short17', 'Language17')[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 297 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 297 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 297 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'en' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('en', 'Engilish')
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 21ms (ActiveRecord: 2.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `languages`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (580, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short18' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short18', 'Language18')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"581"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 298 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 298 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 298 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (4.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 581 ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM `languages` WHERE `languages`.`id` = 581[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 22ms (ActiveRecord: 7.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `languages`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (3.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (582, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short19' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short19', 'Language19')
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"583"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 299 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 299 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 299 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 583 ORDER BY `languages`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (7.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 22.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (12.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (584, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short20' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short20', 'Language20')[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 300 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 300 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 300 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 33ms (Views: 19.0ms | ActiveRecord: 4.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (586, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short21', 'Language21')[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"587"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 301 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 301 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 301 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 587 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'Engilish' AND `languages`.`id` != 587) LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'en' AND `languages`.`id` != 587) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `languages` SET `name` = 'Engilish', `iso_639_1` = 'en' WHERE `languages`.`id` = 587
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 24ms (ActiveRecord: 7.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (588, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short22' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short22', 'Language22')
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 302 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 302 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 302 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages`
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 31ms (Views: 19.0ms | ActiveRecord: 3.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (590, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short23', 'Language23')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 303 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 303 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 303 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 0 ORDER BY `languages`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 18ms (ActiveRecord: 6.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (592, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short24' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short24', 'Language24')[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"593"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 304 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 304 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 304 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 593 ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 26ms (Views: 11.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mSavepoint (2.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (594, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short25' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short25', 'Language25')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:07', 'User9', '2014-04-06 10:28:07')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 9', 'Site Long Text 9', 'Site Short Text 9', 1, '2014-04-06 10:28:07', 1, 595, '2014-02-12 21:54:11', 305, 'Site 9', '2014-04-06 10:28:07', 238, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 305 AND `menus`.`language_id` = 594) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:07', 594, 1, 305, 'MyString', '2014-04-06 10:28:07')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 165 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title33', 165, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title33')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 165 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title34', 165, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title34')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 165 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title35', 165, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title35')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 165 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title36', 165, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title36')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 594) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 594) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 1' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (594, 'Site Description 1', 'www.domain1.com', 1, 0, 'Site 1', 'TRACKING CODE 1')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short26' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short26', 'Language26')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:07', 'User10', '2014-04-06 10:28:07')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 10', 'Site Long Text 10', 'Site Short Text 10', 1, '2014-04-06 10:28:07', 1, 596, '2014-02-12 21:54:11', 306, 'Site 10', '2014-04-06 10:28:07', 239, 1)[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menu_items`
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"230"}, "menu_id"=>"165"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 305 AND `menus`.`id` = 165 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Content Load (2.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 230 ORDER BY `contents`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` IS NULL
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 165 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 165 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('test-title', 165, 5, 1, '--- !ruby/hash:ActionController::Parameters\nid: \'230\'\n', 'CONTENT', 'Test Title')
Redirected to http://test.host/admin/odania/menus/165/menu_items
Completed 302 Found in 35ms (ActiveRecord: 7.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (597, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short27', 'Language27')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User11', '2014-04-06 10:28:08')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 11', 'Site Long Text 11', 'Site Short Text 11', 1, '2014-04-06 10:28:08', 1, 598, '2014-02-12 21:54:11', 307, 'Site 11', '2014-04-06 10:28:08', 240, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 307 AND `menus`.`language_id` = 597) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 597, 1, 307, 'MyString', '2014-04-06 10:28:08')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 166 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title37', 166, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title37')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 166 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title38', 166, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title38')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 166 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title39', 166, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title39')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 166 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title40', 166, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title40')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 166 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"494", "menu_id"=>"166"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 307 AND `menus`.`id` = 166 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 166 AND `menu_items`.`id` = 494 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `menu_items` WHERE `menu_items`.`id` = 494
Redirected to http://test.host/admin/odania/menus/166/menu_items
Completed 302 Found in 13ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menu_items`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (599, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short28' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short28', 'Language28')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User12', '2014-04-06 10:28:08')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 12', 'Site Long Text 12', 'Site Short Text 12', 1, '2014-04-06 10:28:08', 1, 600, '2014-02-12 21:54:11', 308, 'Site 12', '2014-04-06 10:28:08', 241, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 308 AND `menus`.`language_id` = 599) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 599, 1, 308, 'MyString', '2014-04-06 10:28:08')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 167 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title41', 167, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title41')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 167 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title42', 167, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title42')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 167 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title43', 167, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title43')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 167 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title44', 167, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title44')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 167 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"498", "menu_id"=>"167"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 308 AND `menus`.`id` = 167 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 167 AND `menu_items`.`id` = 498 ORDER BY `menu_items`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (1.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (27.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 50ms (Views: 38.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (601, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short29' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short29', 'Language29')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User13', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 13', 'Site Long Text 13', 'Site Short Text 13', 1, '2014-04-06 10:28:08', 1, 602, '2014-02-12 21:54:11', 309, 'Site 13', '2014-04-06 10:28:08', 242, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 309 AND `menus`.`language_id` = 601) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 601, 1, 309, 'MyString', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 168 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title45', 168, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title45')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 168 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title46', 168, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title46')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 168 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title47', 168, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title47')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 168 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title48', 168, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title48')[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"168"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 309 AND `menus`.`id` = 168 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 601 LIMIT 1
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 309 AND `contents`.`language_id` = 601 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (6.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (23.0ms)
[1m[36mOdania::Site Load (3.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 43ms (Views: 32.0ms | ActiveRecord: 7.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (603, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short30' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short30', 'Language30')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User14', '2014-04-06 10:28:08')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 14', 'Site Long Text 14', 'Site Short Text 14', 1, '2014-04-06 10:28:08', 1, 604, '2014-02-12 21:54:11', 310, 'Site 14', '2014-04-06 10:28:08', 243, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 310 AND `menus`.`language_id` = 603) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 603, 1, 310, 'MyString', '2014-04-06 10:28:08')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title49', 169, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title49')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title50', 169, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title50')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title51', 169, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title51')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title52', 169, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title52')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"506", "menu_id"=>"169"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 310 AND `menus`.`id` = 169 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 AND `menu_items`.`id` = 506 ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 169 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 169 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (2.0ms)[0m [1mUPDATE `menu_items` SET `target_data` = '--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n', `title` = 'Test Title', `full_path` = 'test-title', `position` = 5 WHERE `menu_items`.`id` = 506[0m
Redirected to http://test.host/admin/odania/menus/169/menu_items
Completed 302 Found in 23ms (ActiveRecord: 6.0ms)
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 506 LIMIT 1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (4.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (605, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short31', 'Language31')
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User15', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 15', 'Site Long Text 15', 'Site Short Text 15', 1, '2014-04-06 10:28:08', 1, 606, '2014-02-12 21:54:11', 311, 'Site 15', '2014-04-06 10:28:08', 244, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 311 AND `menus`.`language_id` = 605) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 605, 1, 311, 'MyString', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 170 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title53', 170, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title53')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 170 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title54', 170, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title54')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 170 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title55', 170, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title55')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 170 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title56', 170, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title56')[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"170"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 311 AND `menus`.`id` = 170 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (4.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 170 ORDER BY parent_id ASC[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 39ms (Views: 28.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (607, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short32', 'Language32')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User16', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 16', 'Site Long Text 16', 'Site Short Text 16', 1, '2014-04-06 10:28:08', 1, 608, '2014-02-12 21:54:11', 312, 'Site 16', '2014-04-06 10:28:08', 245, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 312 AND `menus`.`language_id` = 607) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 607, 1, 312, 'MyString', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 171 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title57', 171, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title57')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 171 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title58', 171, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title58')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 171 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title59', 171, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title59')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 171 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title60', 171, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title60')[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"171"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 312 AND `menus`.`id` = 171 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 171 AND `menu_items`.`id` = 0 ORDER BY `menu_items`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/171/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 10ms (ActiveRecord: 3.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (609, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short33' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short33', 'Language33')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:08', 'User17', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (4.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 17', 'Site Long Text 17', 'Site Short Text 17', 1, '2014-04-06 10:28:08', 1, 610, '2014-02-12 21:54:11', 313, 'Site 17', '2014-04-06 10:28:08', 246, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 313 AND `menus`.`language_id` = 609) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:08', 609, 1, 313, 'MyString', '2014-04-06 10:28:08')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 172 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title61', 172, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title61')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 172 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title62', 172, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title62')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 172 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title63', 172, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title63')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 172 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title64', 172, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title64')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 172 ORDER BY `menu_items`.`id` ASC LIMIT 1
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"518", "menu_id"=>"172"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 313 AND `menus`.`id` = 172 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 172 AND `menu_items`.`id` = 518 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (3.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 25ms (Views: 14.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (611, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short34' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short34', 'Language34')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User18', '2014-04-06 10:28:09')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 18', 'Site Long Text 18', 'Site Short Text 18', 1, '2014-04-06 10:28:09', 1, 612, '2014-02-12 21:54:11', 314, 'Site 18', '2014-04-06 10:28:09', 247, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 314 AND `menus`.`language_id` = 611) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 611, 1, 314, 'MyString', '2014-04-06 10:28:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 173 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title65', 173, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title65')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 173 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title66', 173, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title66')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 173 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title67', 173, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title67')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 173 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title68', 173, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title68')
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 314 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 314 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (2.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 314 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (6.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` IS NULL AND `menus`.`language_id` IS NULL) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `published`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 1, 'Test Title', '2014-04-06 10:28:09')[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 23ms (ActiveRecord: 10.0ms)
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (613, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short35' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short35', 'Language35')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User19', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 19', 'Site Long Text 19', 'Site Short Text 19', 1, '2014-04-06 10:28:09', 1, 614, '2014-02-12 21:54:11', 315, 'Site 19', '2014-04-06 10:28:09', 248, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 315 AND `menus`.`language_id` = 613) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 613, 1, 315, 'MyString', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 175 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title69', 175, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title69')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 175 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title70', 175, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title70')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 175 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title71', 175, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title71')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 175 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title72', 175, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title72')[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `menus`
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"175"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 315 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 315 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 315 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 175 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `menus` WHERE `menus`.`id` = 175
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 15ms (ActiveRecord: 5.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `menus`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (615, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short36' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short36', 'Language36')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User20', '2014-04-06 10:28:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 20', 'Site Long Text 20', 'Site Short Text 20', 1, '2014-04-06 10:28:09', 1, 616, '2014-02-12 21:54:11', 316, 'Site 20', '2014-04-06 10:28:09', 249, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 316 AND `menus`.`language_id` = 615) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 615, 1, 316, 'MyString', '2014-04-06 10:28:09')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 176 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title73', 176, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title73')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 176 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title74', 176, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title74')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 176 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title75', 176, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title75')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 176 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title76', 176, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title76')
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"176"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 316 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 316 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 316 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 176 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (17.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 47ms (Views: 30.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (617, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short37', 'Language37')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User21', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 21', 'Site Long Text 21', 'Site Short Text 21', 1, '2014-04-06 10:28:09', 1, 618, '2014-02-12 21:54:11', 317, 'Site 21', '2014-04-06 10:28:09', 250, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 317 AND `menus`.`language_id` = 617) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 617, 1, 317, 'MyString', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 177 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title77', 177, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title77')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 177 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title78', 177, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title78')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 177 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title79', 177, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title79')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 177 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title80', 177, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title80')[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 317 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 317 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 317 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (15.0ms)
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 39ms (Views: 24.0ms | ActiveRecord: 7.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (619, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short38' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short38', 'Language38')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User22', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 22', 'Site Long Text 22', 'Site Short Text 22', 1, '2014-04-06 10:28:09', 1, 620, '2014-02-12 21:54:11', 318, 'Site 22', '2014-04-06 10:28:09', 251, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 318 AND `menus`.`language_id` = 619) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 619, 1, 318, 'MyString', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (2.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 178 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title81', 178, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title81')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 178 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title82', 178, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title82')[0m
[1m[35mOdania::MenuItem Load (3.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 178 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title83', 178, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title83')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 178 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title84', 178, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title84')[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"178"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 318 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 318 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 318 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 178 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 318 AND `menus`.`id` != 178 AND `menus`.`language_id` = 619) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menus` SET `title` = 'Test Title', `updated_at` = '2014-04-06 10:28:09' WHERE `menus`.`id` = 178
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 20ms (ActiveRecord: 6.0ms)
[1m[36mSavepoint (6.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (4.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (621, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short39', 'Language39')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User23', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 23', 'Site Long Text 23', 'Site Short Text 23', 1, '2014-04-06 10:28:09', 1, 622, '2014-02-12 21:54:11', 319, 'Site 23', '2014-04-06 10:28:09', 252, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 319 AND `menus`.`language_id` = 621) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 621, 1, 319, 'MyString', '2014-04-06 10:28:09')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 179 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title85', 179, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title85')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 179 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title86', 179, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title86')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 179 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title87', 179, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title87')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 179 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title88', 179, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title88')[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 319 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 319 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 319 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (11.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 319 ORDER BY title ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 319 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 621 LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 45ms (Views: 21.0ms | ActiveRecord: 18.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (623, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short40' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short40', 'Language40')[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:09', 'User24', '2014-04-06 10:28:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 24', 'Site Long Text 24', 'Site Short Text 24', 1, '2014-04-06 10:28:09', 1, 624, '2014-02-12 21:54:11', 320, 'Site 24', '2014-04-06 10:28:09', 253, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 320 AND `menus`.`language_id` = 623) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:09', 623, 1, 320, 'MyString', '2014-04-06 10:28:09')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 180 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title89', 180, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title89')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 180 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title90', 180, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title90')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 180 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title91', 180, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title91')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 180 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title92', 180, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title92')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 320 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 320 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 320 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 0 ORDER BY `menus`.`id` ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 11ms (ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (625, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short41' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short41', 'Language41')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User25', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 25', 'Site Long Text 25', 'Site Short Text 25', 1, '2014-04-06 10:28:10', 1, 626, '2014-02-12 21:54:11', 321, 'Site 25', '2014-04-06 10:28:10', 254, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 321 AND `menus`.`language_id` = 625) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:10', 625, 1, 321, 'MyString', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 181 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title93', 181, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title93')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 181 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title94', 181, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title94')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 181 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title95', 181, 3, 1, '---\nurl: http://target.url.de\n', 'URL', 'title95')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 181 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title96', 181, 4, 1, '---\nurl: http://target.url.de\n', 'URL', 'title96')
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"181"}
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 321 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (4.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 321 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 321 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 181 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 321 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 625 LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 40ms (Views: 20.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (627, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (5.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short42' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short42', 'Language42')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User26', '2014-04-06 10:28:10')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 26', 'Site Long Text 26', 'Site Short Text 26', 1, '2014-04-06 10:28:10', 1, 628, '2014-02-12 21:54:11', 322, 'Site 26', '2014-04-06 10:28:10', 255, 1)[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `sites`
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"627"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 322 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 322 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 322 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `name`, `template`, `tracking_code`) VALUES (627, 'description is here', 'www.test.de', 1, 'Page1', 'ASDASD', 'TRACK')
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 18ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (629, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short43' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short43', 'Language43')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User27', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 27', 'Site Long Text 27', 'Site Short Text 27', 1, '2014-04-06 10:28:10', 1, 630, '2014-02-12 21:54:11', 324, 'Site 27', '2014-04-06 10:28:10', 256, 1)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"324"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 324 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 324 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 324 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 324 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 324
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 18ms (ActiveRecord: 4.0ms)
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `sites`[0m
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (631, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short44' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short44', 'Language44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User28', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 28', 'Site Long Text 28', 'Site Short Text 28', 1, '2014-04-06 10:28:10', 1, 632, '2014-02-12 21:54:11', 325, 'Site 28', '2014-04-06 10:28:10', 257, 1)
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 325 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 325 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 325 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (23.0ms)
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 50ms (Views: 35.0ms | ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (633, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short45', 'Language45')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User29', '2014-04-06 10:28:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 29', 'Site Long Text 29', 'Site Short Text 29', 1, '2014-04-06 10:28:10', 1, 634, '2014-02-12 21:54:11', 326, 'Site 29', '2014-04-06 10:28:10', 258, 1)[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"326"}
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 326 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 326 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 326 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 326 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` ORDER BY name ASC
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (19.0ms)
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.0ms)
Completed 200 OK in 45ms (Views: 33.0ms | ActiveRecord: 4.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (635, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short46' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short46', 'Language46')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User30', '2014-04-06 10:28:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 30', 'Site Long Text 30', 'Site Short Text 30', 1, '2014-04-06 10:28:10', 1, 636, '2014-02-12 21:54:11', 327, 'Site 30', '2014-04-06 10:28:10', 259, 1)[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 327 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 327 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 327 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (17.0ms)
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 36ms (Views: 25.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (637, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short47' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short47', 'Language47')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User31', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 31', 'Site Long Text 31', 'Site Short Text 31', 1, '2014-04-06 10:28:10', 1, 638, '2014-02-12 21:54:11', 328, 'Site 31', '2014-04-06 10:28:10', 260, 1)
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"328"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 328 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 328 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 328 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 328 ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE (`sites`.`host` = BINARY 'www.test.de' AND `sites`.`id` != 328) LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE (`sites`.`name` = BINARY 'Page1' AND `sites`.`id` != 328) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `sites` SET `name` = 'Page1', `host` = 'www.test.de', `tracking_code` = 'TRACK', `description` = 'description is here' WHERE `sites`.`id` = 328[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 22ms (ActiveRecord: 7.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (639, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short48' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short48', 'Language48')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User32', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 32', 'Site Long Text 32', 'Site Short Text 32', 1, '2014-04-06 10:28:10', 1, 640, '2014-02-12 21:54:11', 329, 'Site 32', '2014-04-06 10:28:10', 261, 1)
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 329 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 329 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 329 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites`
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 639 LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 329
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 29ms (Views: 16.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (2.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (641, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short49' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short49', 'Language49')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User33', '2014-04-06 10:28:10')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 33', 'Site Long Text 33', 'Site Short Text 33', 1, '2014-04-06 10:28:10', 1, 642, '2014-02-12 21:54:11', 330, 'Site 33', '2014-04-06 10:28:10', 262, 1)
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 330 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 330 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 330 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 0 ORDER BY `sites`.`id` ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 18ms (ActiveRecord: 6.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (643, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (5.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short50' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short50', 'Language50')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:10', 'User34', '2014-04-06 10:28:10')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 34', 'Site Long Text 34', 'Site Short Text 34', 1, '2014-04-06 10:28:10', 1, 644, '2014-02-12 21:54:11', 331, 'Site 34', '2014-04-06 10:28:10', 263, 1)[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"331"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 331 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 331 AND `menus`.`id` IS NULL ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 331 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 331 ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 643 LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 25ms (Views: 13.0ms | ActiveRecord: 5.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (645, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (646, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 646) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 646) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 2' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (646, 'Site Description 2', 'www.domain2.com', 1, 0, 'Site 2', 'TRACKING CODE 2')[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain2.com' ORDER BY `sites`.`id` ASC LIMIT 1
Completed 200 OK in 8ms (Views: 2.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (647, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 647) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 647) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (647, 'Site Description 3', 'www.domain3.com', 1, 0, 'Site 3', 'TRACKING CODE 3')[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 336 AND `menus`.`language_id` = 647) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:11', 647, 1, 336, 'MyString', '2014-04-06 10:28:11')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 182 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title97', 182, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title97')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain3.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'en' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 647 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 336 AND `menus`.`language_id` = 647 ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 647 LIMIT 1 [["id", 647]]
Completed 200 OK in 19ms (Views: 0.0ms | ActiveRecord: 5.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (648, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (649, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites`[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `sites` WHERE `sites`.`id` = 338
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.example.com' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 7ms (Views: 1.0ms | ActiveRecord: 1.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (650, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 650) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 650) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 4' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (650, 'Site Description 4', 'www.domain4.com', 1, 0, 'Site 4', 'TRACKING CODE 4')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 650) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 650) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'RedirectSite' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `host`, `is_active`, `name`, `redirect_to_id`) VALUES (650, 'redirect.host', 1, 'RedirectSite', 340)[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'redirect.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`id` = 340 LIMIT 1[0m
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 3.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (651, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 342 AND `menus`.`language_id` = 651) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:11', 651, 1, 342, 'MyString', '2014-04-06 10:28:11')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 183 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title98', 183, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title98')
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:28:11 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 342 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 651 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 183 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 183 LIMIT 1
[1m[36mCACHE (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 651 LIMIT 1[0m [["id", 651]]
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 183 AND `menu_items`.`parent_id` = 555 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (11.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 342[0m
[1m[35mCACHE (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 651 LIMIT 1 [["id", 651]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (317.0ms)
Completed 200 OK in 459ms (Views: 451.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mSavepoint (7.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (652, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:28:12 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:28:12 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (653, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short51', 'Language51')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User35', '2014-04-06 10:28:12')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 35', 'Site Long Text 35', 'Site Short Text 35', 1, '2014-04-06 10:28:12', 1, 654, '2014-02-12 21:54:11', 344, 'Site 35', '2014-04-06 10:28:12', 264, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 344 AND `menus`.`language_id` = 653) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:12', 653, 1, 344, 'MyString', '2014-04-06 10:28:12')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 184 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title99', 184, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title99')
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (655, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short52', 'Language52')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User36', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 36', 'Site Long Text 36', 'Site Short Text 36', 1, '2014-04-06 10:28:12', 1, 656, '2014-02-12 21:54:11', 345, 'Site 36', '2014-04-06 10:28:12', 265, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 345 AND `menus`.`language_id` = 655) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:12', 655, 1, 345, 'MyString', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 185 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title100', 185, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title100')[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:28:12 +0200
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (657, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short53', 'Language53')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User37', '2014-04-06 10:28:12')
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T2', 'This is a body T1 asdasdsa T2', 'This is a body T1 asdasdsa T2', '2014-04-06 10:28:12', 1, 658, '2014-04-06 10:28:12', 346, 'asd123', '2014-04-06 10:28:12', 266)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T1' AND `tags`.`site_id` = 346 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T1', 346)[0m
[1m[35mOdania::TagXref Exists (1.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 14 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 257 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 257, 'Odania::Content', 14)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 14 LIMIT 1
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 14[0m
[1m[35mSQL (0.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 14
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T2' AND `tags`.`site_id` = 346 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T2', 346)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 15 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 257 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 257, 'Odania::Content', 15)
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 15 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 15
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 15[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags`
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 14[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 15
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (659, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short54', 'Language54')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User38', '2014-04-06 10:28:12')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:28:12', 1, 660, '2014-04-06 10:28:12', 347, 'asd123', '2014-04-06 10:28:12', 267)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T1' AND `tags`.`site_id` = 347 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T1', 347)
[1m[36mOdania::TagXref Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 16 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 258 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 258, 'Odania::Content', 16)
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 16 LIMIT 1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 16
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 16[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T4' AND `tags`.`site_id` = 347 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T4', 347)[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 17 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 258 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 258, 'Odania::Content', 17)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 17 LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 17[0m
[1m[35mSQL (0.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 17
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T7' AND `tags`.`site_id` = 347 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T7', 347)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 18 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 258 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 258, 'Odania::Content', 18)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 18 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 18
[1m[36mSQL (1.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 18[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs`
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `body` = 'This is a body #T1 asdasdsa #T8 lorem #T4 #T1', `body_filtered` = 'This is a body T1 asdasdsa T8 lorem T4 T1', `updated_at` = '2014-04-06 10:28:12' WHERE `contents`.`id` = 258
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T7' AND `tags`.`site_id` = 347 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 18 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 258 AND `tag_xrefs`.`context` = 'tags' ORDER BY `tag_xrefs`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM `tag_xrefs` WHERE `tag_xrefs`.`id` = 18[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 18 LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 18[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `tags` WHERE `tags`.`id` = 18
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T8' AND `tags`.`site_id` = 347 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T8', 347)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 19 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 258 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 258, 'Odania::Content', 19)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 19 LIMIT 1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 19
[1m[36mSQL (0.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 19[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags`
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 16[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 17
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 19[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs`
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (661, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short55', 'Language55')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User39', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`) VALUES ('This is a body #T1 asdasdsa #T4 dasihdaius #T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', 'This is a body T1 asdasdsa T4 dasihdaius T7', '2014-04-06 10:28:12', 1, 662, '2014-04-06 10:28:12', 348, 'asd123', '2014-04-06 10:28:12', 268)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T1' AND `tags`.`site_id` = 348 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T1', 348)[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 20 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 259 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 259, 'Odania::Content', 20)[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 20 LIMIT 1
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 20[0m
[1m[35mSQL (1.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 20
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T4' AND `tags`.`site_id` = 348 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('T4', 348)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 21 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 259 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 259, 'Odania::Content', 21)
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 21 LIMIT 1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 21
[1m[36mSQL (1.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 21[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T7' AND `tags`.`site_id` = 348 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `tags` (`name`, `site_id`) VALUES ('T7', 348)[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 22 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 259 AND `tag_xrefs`.`context` = 'tags') LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 259, 'Odania::Content', 22)[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 22 LIMIT 1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 22[0m
[1m[35mSQL (1.0ms)[0m UPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 22
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags`[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 20
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 21[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 22
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `body` = 'This is a body #T1 asdasdsa #T7', `body_filtered` = 'This is a body T1 asdasdsa T7', `updated_at` = '2014-04-06 10:28:12' WHERE `contents`.`id` = 259[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'T4' AND `tags`.`site_id` = 348 ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Load (1.0ms)[0m [1mSELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 21 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 259 AND `tag_xrefs`.`context` = 'tags' ORDER BY `tag_xrefs`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM `tag_xrefs` WHERE `tag_xrefs`.`id` = 21
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 21 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 21
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM `tags` WHERE `tags`.`id` = 21[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags`
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 20[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 22
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `tag_xrefs`[0m
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (663, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short56' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short56', 'Language56')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User40', '2014-04-06 10:28:12')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 37', 'Site Long Text 37', 'Site Short Text 37', 1, '2014-04-06 10:28:12', 1, 664, '2014-02-12 21:54:11', 349, 'Site 37', '2014-04-06 10:28:12', 269, 1)
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (665, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short57', 'Language57')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User41', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 38', 'Site Long Text 38', 'Site Short Text 38', 1, '2014-04-06 10:28:12', 1, 666, '2014-02-12 21:54:11', 350, 'Site 38', '2014-04-06 10:28:12', 270, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 350 AND `menus`.`language_id` = 665) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:12', 665, 1, 350, 'MyString', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 186 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title101', 186, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title101')[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE (`languages`.`name` = BINARY 'German' AND `languages`.`id` != 665) LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE (`languages`.`iso_639_1` = BINARY 'de' AND `languages`.`id` != 665) LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (665, 'Site Description 5', 'www.domain5.com', 1, 0, 'Site 5', 'TRACKING CODE 5')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'www.domain5.com' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 351 AND `menus`.`language_id` = 665 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Site Load (2.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`is_default` = 1 ORDER BY `sites`.`id` ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 12ms (ActiveRecord: 3.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (667, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short58' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short58', 'Language58')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User42', '2014-04-06 10:28:12')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 39', 'Site Long Text 39', 'Site Short Text 39', 1, '2014-04-06 10:28:12', 1, 668, '2014-02-12 21:54:11', 352, 'Site 39', '2014-04-06 10:28:12', 271, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 352 AND `menus`.`language_id` = 667) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:12', 667, 1, 352, 'MyString', '2014-04-06 10:28:12')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 187 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title102', 187, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title102')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 187 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 187 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 187 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_data` = '---\nurl: http://www.planetech.de\n', `position` = 2 WHERE `menu_items`.`id` = 559
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (9.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 352 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 667 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 187 LIMIT 1
Redirected to http://www.planetech.de
Completed 302 Found in 22ms (ActiveRecord: 10.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (669, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short59' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short59', 'Language59')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:12', 'User43', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 40', 'Site Long Text 40', 'Site Short Text 40', 1, '2014-04-06 10:28:12', 1, 670, '2014-02-12 21:54:11', 353, 'Site 40', '2014-04-06 10:28:12', 272, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 353 AND `menus`.`language_id` = 669) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:12', 669, 1, 353, 'MyString', '2014-04-06 10:28:12')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 188 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title103', 188, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title103')[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (3.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 353 AND `menus`.`language_id` = 669 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 669 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 353
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 669 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` IS NULL ORDER BY `languages`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 669 LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 353 AND `menus`.`language_id` = 669 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 669 LIMIT 1[0m
Redirected to http://test.host/de
Completed 302 Found in 19ms (ActiveRecord: 8.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (671, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short60' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short60', 'Language60')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User44', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 41', 'Site Long Text 41', 'Site Short Text 41', 1, '2014-04-06 10:28:13', 1, 672, '2014-02-12 21:54:11', 354, 'Site 41', '2014-04-06 10:28:13', 273, 1)
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 354 AND `menus`.`language_id` = 671) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:13', 671, 1, 354, 'MyString', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title104', 189, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title104')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short61' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short61', 'Language61')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User45', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 42', 'Site Long Text 42', 'Site Short Text 42', 1, '2014-04-06 10:28:13', 1, 673, '2014-02-12 21:54:11', 354, 'Site 42', '2014-04-06 10:28:13', 274, 1)
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short62', 'Language62')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User46', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 43', 'Site Long Text 43', 'Site Short Text 43', 1, '2014-04-06 10:28:13', 1, 674, '2014-02-12 21:54:11', 354, 'Site 43', '2014-04-06 10:28:13', 275, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title105', 189, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title105')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 562
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 354 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 671 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`full_path` = 'title105' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 189 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (2.0ms)
[1m[35mOdania::Content Load (0.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 354 AND `contents`.`language_id` = 671 ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (9.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (2.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 189 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 671 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`parent_id` = 561 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 189 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 671 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 189 AND `menu_items`.`parent_id` = 562 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (19.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (20.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 354
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 671 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 59ms (Views: 36.0ms | ActiveRecord: 11.0ms)
[1m[35mSavepoint (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (675, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short63' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short63', 'Language63')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User47', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 44', 'Site Long Text 44', 'Site Short Text 44', 1, '2014-04-06 10:28:13', 1, 676, '2014-02-12 21:54:11', 355, 'Site 44', '2014-04-06 10:28:13', 276, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 355 AND `menus`.`language_id` = 675) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:13', 675, 1, 355, 'MyString', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title106', 190, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title106')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short64' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short64', 'Language64')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User48', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 45', 'Site Long Text 45', 'Site Short Text 45', 1, '2014-04-06 10:28:13', 1, 677, '2014-02-12 21:54:11', 355, 'Site 45', '2014-04-06 10:28:13', 277, 1)
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short65' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short65', 'Language65')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User49', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 46', 'Site Long Text 46', 'Site Short Text 46', 1, '2014-04-06 10:28:13', 1, 678, '2014-02-12 21:54:11', 355, 'Site 46', '2014-04-06 10:28:13', 278, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title107', 190, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title107')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m UPDATE `menu_items` SET `target_type` = 'CONTENT_LIST', `target_data` = '--- {}\n', `position` = 3 WHERE `menu_items`.`id` = 564
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/268-site-45"}
[1m[36mOdania::Site Load (1.0ms)[0m [1mSELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 355 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 675 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`full_path` = 'title107/268-site-45' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`full_path` = 'title107' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 355 AND `contents`.`id` = 268 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 268 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (18.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (24.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 190 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 675 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`parent_id` = 563 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 190 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 675 LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 190 AND `menu_items`.`parent_id` = 564 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (16.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 355
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 675 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 70ms (Views: 46.0ms | ActiveRecord: 13.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (4.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (679, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short66', 'Language66')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User50', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (9.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 47', 'Site Long Text 47', 'Site Short Text 47', 1, '2014-04-06 10:28:13', 1, 680, '2014-02-12 21:54:11', 356, 'Site 47', '2014-04-06 10:28:13', 279, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 356 AND `menus`.`language_id` = 679) LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:13', 679, 1, 356, 'MyString', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (3.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 191 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title108', 191, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title108')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short67' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short67', 'Language67')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User51', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 48', 'Site Long Text 48', 'Site Short Text 48', 1, '2014-04-06 10:28:13', 1, 681, '2014-02-12 21:54:11', 356, 'Site 48', '2014-04-06 10:28:13', 280, 1)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 191 ORDER BY `menu_items`.`id` DESC LIMIT 1[0m
[1m[35mOdania::Content Load (2.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 271 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 565[0m
[1m[35mSQL (0.0ms)[0m UPDATE `contents` SET `menu_item_id` = 565, `updated_at` = '2014-04-06 10:28:13' WHERE `contents`.`id` = 271
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 191 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 191 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 271\n', `position` = 2 WHERE `menu_items`.`id` = 565[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 356 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 679 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 191 AND `menu_items`.`full_path` = 'title108' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (3.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 356 AND `contents`.`id` = 271 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (1.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 271 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (11.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 191 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 191 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 679 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 191 AND `menu_items`.`parent_id` = 565 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 356[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 679 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (1.0ms)
Completed 200 OK in 51ms (Views: 28.0ms | ActiveRecord: 12.0ms)
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (682, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short68' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short68', 'Language68')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User52', '2014-04-06 10:28:13')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 49', 'Site Long Text 49', 'Site Short Text 49', 1, '2014-04-06 10:28:13', 1, 683, '2014-02-12 21:54:11', 357, 'Site 49', '2014-04-06 10:28:13', 281, 1)[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 357 AND `menus`.`language_id` = 682) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:13', 682, 1, 357, 'MyString', '2014-04-06 10:28:13')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title109', 192, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title109')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short69', 'Language69')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User53', '2014-04-06 10:28:13')[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 50', 'Site Long Text 50', 'Site Short Text 50', 1, '2014-04-06 10:28:13', 1, 684, '2014-02-12 21:54:11', 357, 'Site 50', '2014-04-06 10:28:13', 282, 1)[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 ORDER BY `menu_items`.`id` DESC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 192 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title110', 192, 2, 1, '---\nurl: http://target.url.de\n', 'URL', 'title110')[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 273 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 567[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 567, `updated_at` = '2014-04-06 10:28:13' WHERE `contents`.`id` = 273
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 566 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`parent_id` = 566 ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 273\n', `parent_id` = 566, `full_path` = 'title109/title110', `position` = 1 WHERE `menu_items`.`id` = 567[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (2.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` INNER JOIN `languages` ON `languages`.`id` = `menus`.`language_id` WHERE `menus`.`site_id` = 357 AND `languages`.`iso_639_1` = 'de' ORDER BY `menus`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 682 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`full_path` = 'title109/title110' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`site_id` = 357 AND `contents`.`id` = 273 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT `tags`.* FROM `tags` INNER JOIN `tag_xrefs` ON `tags`.`id` = `tag_xrefs`.`tag_id` WHERE `tag_xrefs`.`ref_id` = 273 AND `tag_xrefs`.`ref_type` = 'Odania::Content'
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (7.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 192 LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 682 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`parent_id` = 566 ORDER BY position ASC
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 192 LIMIT 1[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 682 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 192 AND `menu_items`.`parent_id` = 567 ORDER BY position ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (15.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.0ms)
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 357
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 682 LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 53ms (Views: 32.0ms | ActiveRecord: 13.0ms)
[1m[35mSavepoint (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (685, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short70', 'Language70')[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:13', 'User54', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 51', 'Site Long Text 51', 'Site Short Text 51', 1, '2014-04-06 10:28:13', 1, 686, '2014-02-12 21:54:11', 358, 'Site 51', '2014-04-06 10:28:13', 283, 1)
[1m[36mOdania::Menu Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 358 AND `menus`.`language_id` = 685) LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:13', 685, 1, 358, 'MyString', '2014-04-06 10:28:13')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 193 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title111', 193, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title111')
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 193 ORDER BY `menu_items`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Content Load (1.0ms)[0m SELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 274 ORDER BY `contents`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `contents` SET `contents`.`menu_item_id` = NULL WHERE `contents`.`menu_item_id` = 568[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `menu_item_id` = 568, `updated_at` = '2014-04-06 10:28:13' WHERE `contents`.`id` = 274
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 193 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 193 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE `menu_items` SET `target_type` = 'CONTENT', `target_data` = '---\nid: 274\n', `position` = 2 WHERE `menu_items`.`id` = 568[0m
[1m[35mSQL (1.0ms)[0m UPDATE `contents` SET `body` = 'This is a #ABC-Tag test', `menu_item_id` = 568, `body_filtered` = 'This is a ABC-Tag test', `updated_at` = '2014-04-06 10:28:13' WHERE `contents`.`id` = 274
[1m[36mOdania::Tag Load (1.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`name` = 'ABC-Tag' AND `tags`.`site_id` = 358 ORDER BY `tags`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tags` (`name`, `site_id`) VALUES ('ABC-Tag', 358)
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE (`tag_xrefs`.`tag_id` = BINARY 23 AND `tag_xrefs`.`ref_type` = 'Odania::Content' AND `tag_xrefs`.`ref_id` = 274 AND `tag_xrefs`.`context` = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `tag_xrefs` (`context`, `ref_id`, `ref_type`, `tag_id`) VALUES ('tags', 274, 'Odania::Content', 23)
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT `tags`.* FROM `tags` WHERE `tags`.`id` = 23 LIMIT 1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 23
[1m[36mSQL (1.0ms)[0m [1mUPDATE `tags` SET `count` = 1 WHERE `tags`.`id` = 23[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 358 AND `menus`.`language_id` = 685 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 685 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 358 AND `tags`.`name` = 'ABC-Tag' ORDER BY `tags`.`id` ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 23 LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.0ms)[0m SELECT `tag_xrefs`.* FROM `tag_xrefs` WHERE `tag_xrefs`.`tag_id` = 23
[1m[36mOdania::Content Load (4.0ms)[0m [1mSELECT `contents`.* FROM `contents` WHERE `contents`.`id` = 274 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`id` = 568 LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 193 LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 685 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 193 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 193 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 685 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 193 AND `menu_items`.`parent_id` = 568 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 358[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 685 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (5.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 60ms (Views: 33.0ms | ActiveRecord: 14.0ms)
[1m[36mSavepoint (5.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (5.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (687, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short71', 'Language71')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:14', 'User55', '2014-04-06 10:28:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 52', 'Site Long Text 52', 'Site Short Text 52', 1, '2014-04-06 10:28:14', 1, 688, '2014-02-12 21:54:11', 359, 'Site 52', '2014-04-06 10:28:14', 284, 1)[0m
[1m[35mOdania::Menu Exists (1.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 359 AND `menus`.`language_id` = 687) LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:14', 687, 1, 359, 'MyString', '2014-04-06 10:28:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 194 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title112', 194, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title112')[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 359 AND `menus`.`language_id` = 687 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 687 LIMIT 1[0m
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT `tags`.* FROM `tags` WHERE `tags`.`site_id` = 359 AND `tags`.`name` = 'ABC' ORDER BY `tags`.`id` ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (3.0ms)
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 194 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 194 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 687 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 194 AND `menu_items`.`parent_id` = 569 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 359[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 687 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 39ms (Views: 24.0ms | ActiveRecord: 8.0ms)
[1m[36mSavepoint (2.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` IS NULL LIMIT 1
[1m[36mOdania::Language Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'German' LIMIT 1
[1m[36mOdania::Language Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'de' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('de', 'German')
[1m[36mOdania::Site Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `sites` WHERE `sites`.`host` = BINARY 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM `sites` WHERE `sites`.`name` = BINARY 'Default Site' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `sites` (`default_language_id`, `description`, `host`, `is_active`, `is_default`, `name`, `tracking_code`) VALUES (689, 'Default Site Description', 'test.host', 1, 1, 'Default Site', 'TRACKING CODE')[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM `languages` WHERE `languages`.`name` = BINARY 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM `languages` WHERE `languages`.`iso_639_1` = BINARY 'short72' LIMIT 1[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `languages` (`iso_639_1`, `name`) VALUES ('short72', 'Language72')
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `users` (`created_at`, `name`, `updated_at`) VALUES ('2014-04-06 10:28:14', 'User56', '2014-04-06 10:28:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`target_type` = 'CONTENT_LIST' ORDER BY `menu_items`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `contents` (`body`, `body_filtered`, `body_short`, `clicks`, `created_at`, `is_active`, `language_id`, `published_at`, `site_id`, `title`, `updated_at`, `user_id`, `views`) VALUES ('Site Long Text 53', 'Site Long Text 53', 'Site Short Text 53', 1, '2014-04-06 10:28:14', 1, 690, '2014-02-12 21:54:11', 360, 'Site 53', '2014-04-06 10:28:14', 285, 1)[0m
[1m[35mOdania::Menu Exists (5.0ms)[0m SELECT 1 AS one FROM `menus` WHERE (`menus`.`site_id` = BINARY 360 AND `menus`.`language_id` = 689) LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO `menus` (`created_at`, `language_id`, `published`, `site_id`, `title`, `updated_at`) VALUES ('2014-04-06 10:28:14', 689, 1, 360, 'MyString', '2014-04-06 10:28:14')[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 195 AND `menu_items`.`parent_id` IS NULL ORDER BY position DESC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `menu_items` (`full_path`, `menu_id`, `position`, `published`, `target_data`, `target_type`, `title`) VALUES ('title113', 195, 1, 1, '---\nurl: http://target.url.de\n', 'URL', 'title113')[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (1.0ms)[0m SELECT `sites`.* FROM `sites` WHERE `sites`.`is_active` = 1 AND `sites`.`host` = 'test.host' ORDER BY `sites`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`iso_639_1` = 'de' ORDER BY `languages`.`id` ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 360 AND `menus`.`language_id` = 689 ORDER BY `menus`.`id` ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 689 LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.0ms)[0m SELECT 1 AS one FROM `tags` WHERE `tags`.`site_id` = 360 LIMIT 1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 195 AND `menu_items`.`parent_id` IS NULL ORDER BY position ASC[0m
[1m[35mOdania::Menu Load (1.0ms)[0m SELECT `menus`.* FROM `menus` WHERE `menus`.`id` = 195 LIMIT 1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 689 LIMIT 1[0m
[1m[35mOdania::MenuItem Load (1.0ms)[0m SELECT `menu_items`.* FROM `menu_items` WHERE `menu_items`.`menu_id` = 195 AND `menu_items`.`parent_id` = 570 ORDER BY position ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (27.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (29.0ms)
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT `menus`.* FROM `menus` WHERE `menus`.`site_id` = 360[0m
[1m[35mOdania::Language Load (1.0ms)[0m SELECT `languages`.* FROM `languages` WHERE `languages`.`id` = 689 LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 54ms (Views: 38.0ms | ActiveRecord: 9.0ms)
[1m[36mSavepoint (8.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35mSavepoint (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mSavepoint (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mSavepoint (1.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User1"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:29:27 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "Admin"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User2"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "contents" WHERE "contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User3"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 68ms (Views: 65.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User4"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User5"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User6"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User7"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 0 ORDER BY "contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User8"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "languages" WHERE "languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'Engilish' AND "languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'en' AND "languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "languages" SET "name" = ?, "iso_639_1" = ? WHERE "languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 0 ORDER BY "languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["name", "User9"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User10"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User11"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menu_items" WHERE "menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User12"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (7.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User13"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."site_id" = 1 AND "contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User14"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User15"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User16"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 0 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User17"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User18"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" IS NULL AND "menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 30ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User19"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menus" WHERE "menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User20"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User21"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User22"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."id" != 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menus" SET "title" = ?, "updated_at" = ? WHERE "menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User23"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User24"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 0 ORDER BY "menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User25"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User26"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User27"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User28"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (8.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User29"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User30"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User31"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE ("sites"."host" = 'www.test.de' AND "sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE ("sites"."name" = 'Page1' AND "sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User32"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00], ["name", "User33"], ["updated_at", Sun, 06 Apr 2014 10:29:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 0 ORDER BY "sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User34"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain2.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 2 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain3.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'en' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'redirect.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (28.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (31.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 67ms (Views: 65.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User35"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User36"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:29:29 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User37"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T2' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User38"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "tags" WHERE "tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T8' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 4 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User39"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User40"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User41"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain5.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User42"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User43"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" IS NULL ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User44"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User45"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User46"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title105' ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 42ms (Views: 10.2ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User47"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User48"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User49"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title107/2-site-45' ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title107' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (5.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User50"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User51"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title108' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (29.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 33.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User52"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User53"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title109/title110' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["name", "User54"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Sun, 06 Apr 2014 10:29:29 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'ABC-Tag' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC-Tag' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 8.8ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["name", "User55"], ["updated_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (0.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 11ms (Views: 6.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["name", "User56"], ["updated_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:29:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User1"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-06 12:30:08 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "Admin"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User2"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "contents" WHERE "contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User3"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 64ms (Views: 62.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User4"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User5"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 42ms (ActiveRecord: 0.6ms)
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User6"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User7"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 0 ORDER BY "contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User8"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 30ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "languages" WHERE "languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'Engilish' AND "languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'en' AND "languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "languages" SET "name" = ?, "iso_639_1" = ? WHERE "languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 0 ORDER BY "languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 31ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = 2 ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User9"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["name", "User10"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Sun, 06 Apr 2014 10:30:08 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User11"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menu_items" WHERE "menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User12"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User13"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."site_id" = 1 AND "contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User14"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User15"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User16"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 0 ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User17"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."id" = 1 ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User18"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" IS NULL AND "menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (27.8ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User19"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "menus" WHERE "menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User20"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User21"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User22"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."id" != 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menus" SET "title" = ?, "updated_at" = ? WHERE "menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User23"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User24"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 0 ORDER BY "menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User25"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = 1 ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User26"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User27"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User28"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (8.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User29"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (31.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User30"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User31"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE ("sites"."host" = 'www.test.de' AND "sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE ("sites"."name" = 'Page1' AND "sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User32"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["name", "User33"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Sun, 06 Apr 2014 10:30:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.5ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."id" = 0 ORDER BY "sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 41ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User34"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.3ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."id" IS NULL ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" ORDER BY "menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = 1 ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain2.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 2 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain3.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'en' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "sites" WHERE "sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.example.com' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'redirect.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.4ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.6ms)
Completed 200 OK in 38ms (Views: 37.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User35"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User36"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-06 12:30:10 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User37"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T2' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User38"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "tags" WHERE "tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T8' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 4 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User39"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T1' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T7' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 3 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "count" = ? WHERE "tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."name" = 'T4' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = 2 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags' ORDER BY "tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "tag_xrefs" WHERE "tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User40"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User41"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE ("languages"."name" = 'German' AND "languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE ("languages"."iso_639_1" = 'de' AND "languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'www.domain5.com' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."is_default" = 't' ORDER BY "sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 31ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User42"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User43"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" IS NULL ORDER BY "languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User44"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User45"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User46"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title105' ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.2ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User47"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User48"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User49"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title107/2-site-45' ORDER BY "menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title107' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 14.9ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User50"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User51"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title108' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User52"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["name", "User53"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Sun, 06 Apr 2014 10:30:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" INNER JOIN "languages" ON "languages"."id" = "menus"."language_id" WHERE "menus"."site_id" = ? AND "languages"."iso_639_1" = 'de' ORDER BY "menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."full_path" = 'title109/title110' ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."site_id" = ? AND "contents"."id" = 2 ORDER BY "contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "tag_xrefs" ON "tags"."id" = "tag_xrefs"."tag_id" WHERE "tag_xrefs"."ref_id" = ? AND "tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["name", "User54"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? ORDER BY "menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "contents".* FROM "contents" WHERE "contents"."id" = 1 ORDER BY "contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "contents" SET "menu_item_id" = NULL WHERE "contents"."menu_item_id" = 1
[1m[36mSQL (1.0ms)[0m [1mUPDATE "contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."name" = 'ABC-Tag' AND "tags"."site_id" = 1 ORDER BY "tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE ("tag_xrefs"."tag_id" = 1 AND "tag_xrefs"."ref_type" = 'Odania::Content' AND "tag_xrefs"."ref_id" = 1 AND "tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "count" = ? WHERE "tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC-Tag' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "tag_xrefs".* FROM "tag_xrefs" WHERE "tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "contents".* FROM "contents" WHERE "contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 12.2ms | ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.3ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["name", "User55"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."site_id" = ? AND "tags"."name" = 'ABC' ORDER BY "tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found.html.erb (0.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 13ms (Views: 8.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "sites" WHERE "sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "sites" WHERE "sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "languages" WHERE "languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "languages" WHERE "languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["name", "User56"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "menus" WHERE ("menus"."site_id" = 1 AND "menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 10:30:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "sites".* FROM "sites" WHERE "sites"."is_active" = 't' AND "sites"."host" = 'test.host' ORDER BY "sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."iso_639_1" = 'de' ORDER BY "languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? AND "menus"."language_id" = 1 ORDER BY "menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "menus".* FROM "menus" WHERE "menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "menu_items".* FROM "menu_items" WHERE "menu_items"."menu_id" = ? AND "menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "menus".* FROM "menus" WHERE "menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "languages".* FROM "languages" WHERE "languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (129.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
[1m[35m (117.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateCkeditorAssets (20140313225259)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime, "updated_at" datetime) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
[1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225259"]]
[1m[36m (139.1ms)[0m [1mcommit transaction[0m
Migrating to CreateContent (20140313225260)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.9ms)[0m [1mCREATE TABLE "odania_contents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "menu_item_id" integer, "body" text NOT NULL, "body_filtered" text NOT NULL, "body_short" text NOT NULL, "clicks" integer DEFAULT 0, "views" integer DEFAULT 0, "published_at" datetime NOT NULL, "is_active" boolean DEFAULT 'f', "site_id" integer NOT NULL, "language_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_odania_contents_on_site_id_and_language_id_and_is_active" ON "odania_contents" ("site_id", "language_id", "is_active")
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_odania_contents_on_user_id" ON "odania_contents" ("user_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225260"]]
[1m[36m (128.7ms)[0m [1mcommit transaction[0m
Migrating to CreateLanguage (20140313225261)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "odania_languages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "iso_639_1" varchar(255)) [0m
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_odania_languages_on_iso_639_1" ON "odania_languages" ("iso_639_1")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140313225261"]]
[1m[35m (131.5ms)[0m commit transaction
Migrating to CreateMenu (20140313225262)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "odania_menus" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "published" boolean, "default_menu_item_id" integer, "site_id" integer, "language_id" integer, "created_at" datetime, "updated_at" datetime)
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_odania_menus_on_site_id_and_language_id" ON "odania_menus" ("site_id", "language_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225262"]]
[1m[36m (131.5ms)[0m [1mcommit transaction[0m
Migrating to CreateMenuItems (20140313225263)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.4ms)[0m [1mCREATE TABLE "odania_menu_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "menu_id" integer, "title" varchar(255), "published" boolean, "target_type" varchar(255), "target_data" text, "parent_id" integer, "position" integer, "full_path" varchar(255)) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_odania_menu_items_on_menu_id_and_full_path" ON "odania_menu_items" ("menu_id", "full_path")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140313225263"]]
[1m[35m (148.1ms)[0m commit transaction
Migrating to CreateSites (20140313225264)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "odania_sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "host" varchar(255), "is_active" boolean, "is_default" boolean, "tracking_code" text, "description" text, "template" varchar(255), "user_signup_allowed" boolean DEFAULT 'f', "default_language_id" integer, "redirect_to_id" integer)
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_odania_sites_on_host" ON "odania_sites" ("host")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225264"]]
[1m[36m (214.6ms)[0m [1mcommit transaction[0m
Migrating to CreateUser (20140313225265)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "odania_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "admin_layout" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313225265"]]
[1m[36m (140.6ms)[0m [1mcommit transaction[0m
Migrating to CreateOdaniaTags (20140323201042)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "odania_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "site_id" integer NOT NULL, "count" integer DEFAULT 0) [0m
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_odania_tags_on_site_id_and_name" ON "odania_tags" ("site_id", "name")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140323201042"]]
[1m[35m (190.0ms)[0m commit transaction
Migrating to CreateOdaniaTagXrefs (20140323201249)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "odania_tag_xrefs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "ref_type" varchar(255), "ref_id" integer, "context" varchar(128))
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_odania_tag_xrefs_on_tag_id_and_context" ON "odania_tag_xrefs" ("tag_id", "context")[0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_odania_tag_xrefs_on_ref_type_and_ref_id_and_context" ON "odania_tag_xrefs" ("ref_type", "ref_id", "context")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140323201249"]]
[1m[35m (189.4ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User1"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 00:08:06 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "Admin"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User2"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User3"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (39.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 281ms (Views: 278.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User4"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User5"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User6"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.7ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User7"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["name", "User8"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:06 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User9"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User10"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User11"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User12"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (14.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User13"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.9ms)
[1m[35mOdania::Site Load (0.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 49ms (Views: 46.9ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User14"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User15"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User16"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User17"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User18"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User19"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User20"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User21"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User22"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (1.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 51ms (ActiveRecord: 1.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User23"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User24"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User25"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User26"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User27"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User28"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 35ms (Views: 31.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User29"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User30"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User31"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User32"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (45.9ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["name", "User33"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Sun, 06 Apr 2014 22:08:07 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User34"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (25.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 230ms (Views: 229.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User35"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User36"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 00:08:08 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User37"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User38"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User39"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User40"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (3.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User41"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (7.9ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User42"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User43"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User44"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User45"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User46"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.7ms)
[1m[36mOdania::Content Load (0.3ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (4.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.0ms)
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 36ms (Views: 30.0ms | ActiveRecord: 1.7ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User47"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User48"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User49"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (23.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (29.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 43ms (Views: 35.2ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (11.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User50"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["name", "User51"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 22:08:08 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.1ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["name", "User52"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["name", "User53"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.2ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["name", "User54"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1ms
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["name", "User55"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.3ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["name", "User56"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Sun, 06 Apr 2014 22:08:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 19:31:56 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 17:31:56 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 13ms (ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 28ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (33.8ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 306ms (Views: 301.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.9ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 14.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.3ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (2.7ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 44ms (Views: 36.1ms | ActiveRecord: 1.0ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:57 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 39ms (Views: 33.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.9ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.7ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 8.5ms | ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 13ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (2.6ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (1.6ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 48ms (ActiveRecord: 2.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (4.2ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.8ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (29.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 64ms (Views: 59.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (9.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 13.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (15.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 42ms (Views: 34.2ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (11.6ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 16.8ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (20.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 29ms (Views: 24.2ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 10ms (ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 17:31:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 19:31:59 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 10ms
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.3ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (19.0ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (12.7ms)
Completed 200 OK in 224ms (Views: 222.0ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 19:32:00 +0200
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.9ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 3ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 45ms (Views: 36.0ms | ActiveRecord: 1.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.2ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.3ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (24.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (32.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (9.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.3ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (46.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.2ms)
Completed 200 OK in 110ms (Views: 97.7ms | ActiveRecord: 2.6ms)
[1m[35m (0.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.9ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 14.1ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 14.7ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 2ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 17:32:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 2ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:34:02 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 33ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (23.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 76ms (Views: 74.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.6ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (1.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 39ms (ActiveRecord: 2.0ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.3ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:02 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.6ms)
Completed 200 OK in 65ms (Views: 63.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:34:03 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:34:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:34:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:35:07 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 35ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 63ms (Views: 60.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.7ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (39.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (1.5ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 47ms (ActiveRecord: 41.2ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (7.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (1.8ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 63ms (Views: 62.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:35:08 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:35:09 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 2ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 15.4ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 2ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:35:21 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 34ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (1.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 40ms (ActiveRecord: 1.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (3.9ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:35:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 29ms (Views: 28.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:35:23 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (2.8ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.4ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:35:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:07 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:36:07 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:07 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:36:07 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:07 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:07 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:36:08 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 35ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.1ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 64ms (Views: 62.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.5ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (1.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 42ms (ActiveRecord: 2.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.5ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:08 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (4.4ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 64ms (Views: 62.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:36:09 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Completed 404 Not Found in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:36:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Completed 404 Not Found in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:37:12 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 68ms (Views: 65.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 41ms (ActiveRecord: 0.9ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:37:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.6ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.2ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.7ms)
Completed 200 OK in 68ms (Views: 67.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:37:14 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 500 Internal Server Error in 3ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.5ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 19ms (Views: 14.2ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
Completed 500 Internal Server Error in 10ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.6ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 6ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (0.9ms)
Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:37:47 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 61ms (Views: 59.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:37:47 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.4ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.3ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 68ms (Views: 67.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:37:48 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (40.5ms)
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
Completed 500 Internal Server Error in 49ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.6ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.2ms)
Completed 200 OK in 55ms (Views: 50.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 12ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:37:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.4ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.1ms)
Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:37:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 5ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:40:03 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 63ms (Views: 60.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (1.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 39ms (ActiveRecord: 1.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:40:03 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (36.6ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.6ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 62ms (Views: 61.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:40:04 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (35.9ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.1ms)
Completed 500 Internal Server Error in 44ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.4ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (40.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 48ms (Views: 44.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (0.9ms)
Completed 500 Internal Server Error in 9ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.3ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 5ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:40:45 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.3ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:40:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (3.8ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 64ms (Views: 63.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:40:46 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 500 Internal Server Error in 53ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:40:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (0.9ms)
Completed 500 Internal Server Error in 9ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.1ms)
Completed 500 Internal Server Error in 6ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:40:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (0.9ms)
Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:41:10 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (11.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 74ms (Views: 70.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.8ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.5ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 43ms (ActiveRecord: 1.0ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.6ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (2.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:41:11 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:41:11 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:41:11 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.3ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 68ms (Views: 66.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:41:12 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (1.8ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (39.8ms)
Completed 500 Internal Server Error in 44ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (10.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 16.0ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (37.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (40.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 50ms (Views: 46.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 10ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.6ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.1ms)
Completed 500 Internal Server Error in 6ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:41:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 5ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:42:19 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 34ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (1.9ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 39ms (ActiveRecord: 2.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (7.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 11.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:19 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.7ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (4.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 63ms (Views: 62.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:42:20 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (39.6ms)
Completed 500 Internal Server Error in 44ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 52ms (Views: 47.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (0.9ms)
Completed 500 Internal Server Error in 10ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.1ms)
Completed 500 Internal Server Error in 6ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:42:41 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (1.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 40ms (ActiveRecord: 1.8ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (4.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 65ms (Views: 63.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:42:42 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (39.0ms)
Completed 500 Internal Server Error in 43ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:42:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (38.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (40.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 50ms (Views: 46.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (0.9ms)
Completed 500 Internal Server Error in 9ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.0ms)
Completed 500 Internal Server Error in 6ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:42:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:43:13 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 35ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 61ms (Views: 59.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (1.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 39ms (ActiveRecord: 1.9ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 65ms (Views: 64.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:43:14 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (41.4ms)
Completed 500 Internal Server Error in 46ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[35mOdania::Content Load (0.3ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 20ms (Views: 14.9ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 51ms (Views: 46.9ms | ActiveRecord: 1.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"locale"=>"de", "tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"locale"=>"de", "tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 9ms (Views: 6.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:43:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:09 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:45:09 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:09 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:45:09 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:09 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:09 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:45:10 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.8ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:45:10 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 38ms (ActiveRecord: 0.3ms)
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 64ms (Views: 63.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:45:11 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
Completed 500 Internal Server Error in 43ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 9ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:45:11 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:48:03 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 64ms (Views: 60.0ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.8ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:03 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 49ms (Views: 45.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1 [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (2.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_authorized as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 3]]
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.0ms)
Completed 200 OK in 65ms (Views: 62.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
Processing by TestController#test_current_user as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:48:04 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:48:04 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
Completed 500 Internal Server Error in 7ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (10.4ms)
[1m[36mOdania::MenuItem Load (0.3ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 69ms (Views: 63.1ms | ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.3ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 7.1ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 9ms (Views: 5.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:05 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:48:43 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 63ms (Views: 59.3ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.3ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:43 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 49ms (Views: 44.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1 [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 4.1ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.9ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_authorized as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 3]]
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.2ms)
Completed 200 OK in 64ms (Views: 61.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
Processing by TestController#test_current_user as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:48:44 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
Completed 500 Internal Server Error in 7ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.2ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.0ms)
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 56ms (Views: 51.3ms | ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:48:44 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 9ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:48:45 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:49:38 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 65ms (Views: 61.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.5ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 48ms (Views: 43.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1 [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:49:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (38.5ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.8ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_authorized as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 3]]
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.1ms)
Completed 200 OK in 65ms (Views: 61.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
Processing by TestController#test_current_user as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:49:40 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (2.3ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
Completed 500 Internal Server Error in 6ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 55ms (Views: 51.0ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:49:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:51:58 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:58 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 39ms (ActiveRecord: 0.3ms)
[1m[35m (0.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 64ms (Views: 62.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:51:59 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:51:59 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
Completed 500 Internal Server Error in 45ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.6ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.5ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 8ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:52:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:53:26 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 12ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (14.5ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 112ms (Views: 78.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (2.1ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.2ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 5.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 12ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (35.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (10.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (9.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 43ms (ActiveRecord: 2.0ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (6.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:53:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (1.6ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 46ms (ActiveRecord: 2.3ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (13.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (10.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (9.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (35.4ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (1.3ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.4ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (40.0ms)
Completed 200 OK in 84ms (Views: 82.7ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:53:28 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:53:28 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:29 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:53:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:53:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.9ms)
Completed 500 Internal Server Error in 6324ms
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:35 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3457ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:53:38 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.5ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 15.1ms | ActiveRecord: 1.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (44.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (47.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 69ms (Views: 59.8ms | ActiveRecord: 1.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.8ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 11.7ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.4ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 14.3ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.3ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 17.1ms | ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.9ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.7ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 17ms (Views: 13.6ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:53:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:54:26 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 60.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.8ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:54:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 38ms (ActiveRecord: 0.3ms)
[1m[35m (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.3ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 68ms (Views: 66.9ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:54:27 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.7ms)
Completed 404 Not Found in 44ms (Views: 42.0ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.7ms)
[1m[36m (0.8ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:27 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.4ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 8ms (Views: 6.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:28 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:54:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:54:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:54:53 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 12ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (14.8ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 117ms (Views: 112.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.1ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 14.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (2.2ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:54:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 9.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 12ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (1.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 42ms (ActiveRecord: 1.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (10.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 16.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (9.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 10ms (ActiveRecord: 0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (6.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (13.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 26ms (Views: 18.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (10.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 14.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (11.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:55 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:54:55 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (40.1ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.8ms)
Completed 200 OK in 86ms (Views: 84.9ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:54:56 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:54:56 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:54:56 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:54:56 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (1.1ms)
Completed 404 Not Found in 41972ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:55:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 83009ms (ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.6ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 26ms (Views: 17.2ms | ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (9.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (12.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 34ms (Views: 24.6ms | ActiveRecord: 1.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.1ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 12.2ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (1.3ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 14.8ms | ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.9ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 25ms (Views: 18.2ms | ActiveRecord: 1.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.7ms)
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 18ms (Views: 14.2ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:57:02 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:57:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:57:02 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:57:02 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:57:02 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:57:02 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.2ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 14.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:58:46 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 66ms (Views: 64.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.5ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 42ms (ActiveRecord: 0.9ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:46 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 41ms (ActiveRecord: 0.3ms)
[1m[35m (1.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 69ms (Views: 68.2ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:58:47 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.7ms)
Completed 404 Not Found in 45ms (Views: 42.6ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.8ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:58:47 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.9ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.4ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 8ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:58:48 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:59:13 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 61ms (Views: 59.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:59:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 38ms (ActiveRecord: 0.3ms)
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 65ms (Views: 64.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:59:14 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.6ms)
Completed 404 Not Found in 43ms (Views: 40.9ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (40.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 50ms (Views: 46.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.4ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 9ms (Views: 6.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.2ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 20:59:21 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 12ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (14.3ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 113ms (Views: 78.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (2.1ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 12ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (35.8ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (10.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 15.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (9.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (1.6ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 44ms (ActiveRecord: 2.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (6.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (1.7ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 46ms (ActiveRecord: 2.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (13.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 25ms (Views: 18.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (10.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 15.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (9.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (3.4ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (40.0ms)
Completed 200 OK in 84ms (Views: 83.2ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 20:59:23 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:59:23 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_default
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 18:59:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Menu Load (0.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (1.5ms)
Completed 404 Not Found in 294539ms (Views: 7.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:18 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 2376ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.5ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.9ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 16.0ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.3ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (9.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (12.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.0ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 33ms (Views: 23.4ms | ActiveRecord: 1.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.2ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 12.6ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.1ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 13.4ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.2ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.1ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 26ms (Views: 18.8ms | ActiveRecord: 1.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.7ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.2ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 17ms (Views: 13.5ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:37 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 19:04:37 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:37 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 19:04:37 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:37 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:37 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 21:04:38 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 61ms (Views: 58.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 19:04:38 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 41ms (ActiveRecord: 0.3ms)
[1m[35m (1.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.3ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 65ms (Views: 64.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 21:04:39 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 42ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.6ms)
Completed 404 Not Found in 5ms (Views: 3.1ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 19ms (Views: 14.3ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 47ms (Views: 43.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.3ms)
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 404 Not Found in 8ms (Views: 6.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:04:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 21:08:39 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 13ms (ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (14.4ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 114ms (Views: 109.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (7.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (2.0ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:39 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.1ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 13ms (ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.8ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.6ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 41ms (ActiveRecord: 1.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.6ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (10.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (8.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.6ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (6.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:40 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 10ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (15.1ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 30ms (Views: 20.8ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (11.6ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 16.9ms | ActiveRecord: 1.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (11.0ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 15.1ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 12ms (ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.3ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (7.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (47.4ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (6.0ms)
Completed 200 OK in 94ms (Views: 92.4ms | ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 21:08:41 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:08:41 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (1.0ms)
Completed 404 Not Found in 9ms (Views: 4.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.5ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.1ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 15.9ms | ActiveRecord: 1.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.2ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (8.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (12.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.3ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 33ms (Views: 23.5ms | ActiveRecord: 1.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (36.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 11.7ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 14.3ms | ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 17.3ms | ActiveRecord: 1.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/common/_not_found_error.html.erb (0.7ms)
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.8ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 404 Not Found in 16ms (Views: 12.8ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:08:42 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 21:12:12 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 61ms (Views: 59.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.1ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:12 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 38ms (ActiveRecord: 0.3ms)
[1m[35m (2.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 64ms (Views: 63.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 21:12:13 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (1.0ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 14.0ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 500 Internal Server Error in 2ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:14 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:12:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:12:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 21:12:28 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 61ms (Views: 59.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:28 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 37ms (ActiveRecord: 0.3ms)
[1m[35m (1.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 21:12:29 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 21:12:29 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:29 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:29 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.0ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 66ms (Views: 64.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 21:12:30 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 19ms (Views: 14.5ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:30 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 21:12:49 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 60.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:49 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 37ms (ActiveRecord: 0.3ms)
[1m[35m (1.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site?locale=de" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_valid_site as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:50 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 21:12:50 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.8ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 67ms (Views: 66.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 21:12:51 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 21:12:51 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 21:12:51 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (2.6ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:12:51 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["name", "User1"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-07 21:13:52 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["name", "Admin"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["name", "User2"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["name", "User3"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (8.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 62ms (Views: 59.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["name", "User4"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["name", "User5"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Mon, 07 Apr 2014 19:13:52 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User6"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User7"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User8"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 39ms (ActiveRecord: 0.9ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User9"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User10"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User11"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User12"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User13"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User14"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User15"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User16"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User17"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (0.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User18"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User19"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User20"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User21"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User22"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User23"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User24"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User25"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User26"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User27"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User28"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User29"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User30"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (3.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User31"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User32"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User33"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 38ms (ActiveRecord: 0.3ms)
[1m[35m (1.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.2ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["name", "User34"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-07 21:13:53 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-07 21:13:53 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:53 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 21:13:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 21:13:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 21:13:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-07 21:13:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-07 21:13:54 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 65ms (Views: 64.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-07 21:13:54 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-07 21:13:54 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User35"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User36"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-07 21:13:54 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User37"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User38"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User39"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User40"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User41"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (3.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User42"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User43"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User44"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User45"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User46"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User47"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User48"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User49"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User50"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User51"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User52"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User53"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User54"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User55"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["name", "User56"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Mon, 07 Apr 2014 19:13:54 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:20 UTC +00:00], ["name", "User1"], ["updated_at", Fri, 11 Apr 2014 10:52:20 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:20 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Fri, 11 Apr 2014 10:52:20 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:20 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:20 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 12:52:21 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["name", "Admin"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 21ms (ActiveRecord: 1.0ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (1.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["name", "User2"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["name", "User3"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.3ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:21 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.3ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (106.0ms)
[1m[36mOdania::Site Load (0.4ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 998ms (Views: 994.4ms | ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["name", "User4"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.3ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["name", "User5"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["name", "User6"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (3.2ms)
[1m[36mOdania::Content Load (0.3ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 42ms (Views: 36.6ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["name", "User7"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["name", "User8"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:22 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.6ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.3ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 40ms (Views: 37.0ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.3ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.2ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 36ms (Views: 31.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.7ms)
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2[0m [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User9"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User10"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (1.5ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 12ms (ActiveRecord: 2.1ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User11"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User12"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (2.6ms)
[1m[35mOdania::MenuItem Load (0.4ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (62.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 73ms (Views: 69.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User13"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User14"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User15"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (19.2ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.4ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.3ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User16"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User17"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_select_menu_item.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 18.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.6ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User18"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User19"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.8ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User20"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User21"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User22"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User23"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.3ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.4ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User24"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["name", "User25"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:23 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User26"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User27"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User28"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (1.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (8.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 45ms (Views: 39.2ms | ActiveRecord: 2.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User29"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.8ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User30"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.7ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 9.5ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User31"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User32"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User33"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 39ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User34"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (1.6ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 41ms (ActiveRecord: 1.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.4ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (16.1ms)
[1m[36mOdania::Menu Load (0.4ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (22.1ms)
Completed 200 OK in 281ms (Views: 277.8ms | ActiveRecord: 1.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 12:52:24 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["name", "User35"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:24 UTC +00:00]]
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User36"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-11 12:52:25 +0200
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
[1m[35m (0.4ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.7ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User37"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.3ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.2ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User38"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.3ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.2ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (1.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User39"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (14.4ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.9ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.9ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User40"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (1.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.8ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User41"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (2.8ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User42"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.5ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.4ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User43"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 404 Not Found in 19ms (Views: 15.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (3.8ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User44"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User45"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User46"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.0ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (9.2ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
[1m[36mOdania::Menu Load (0.7ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (12.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (14.5ms)
[1m[35mOdania::Menu Load (1.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 81ms (Views: 37.1ms | ActiveRecord: 4.2ms)
[1m[35m (0.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (1.7ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User47"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User48"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User49"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (41.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (48.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (40.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.2ms)
Completed 200 OK in 109ms (Views: 103.9ms | ActiveRecord: 1.5ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["name", "User50"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:25 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["name", "User51"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 11.8ms | ActiveRecord: 1.2ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["name", "User52"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (1.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["name", "User53"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (1.5ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.5ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 14.8ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["name", "User54"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.3ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.2ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 46ms (Views: 31.4ms | ActiveRecord: 1.9ms)
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["name", "User55"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (1.6ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["name", "User56"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 10:52:26 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.3ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (19.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 50ms (Views: 47.6ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (1.6ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00], ["name", "User1"], ["updated_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 21:17:13 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00], ["name", "Admin"], ["updated_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Fri, 11 Apr 2014 19:17:13 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User2"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User3"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (106.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 737ms (Views: 734.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User4"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 42ms (Views: 39.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User5"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User6"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User7"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (26.9ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["name", "User8"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:14 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_languages" WHERE "odania_languages"."id" = ?[0m [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (15.9ms)
Completed 500 Internal Server Error in 37ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Completed 500 Internal Server Error in 7ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2 [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Completed 500 Internal Server Error in 8ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Completed 500 Internal Server Error in 6ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User9"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User10"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User11"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (1.6ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User12"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (15.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User13"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User14"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User15"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User16"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User17"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User18"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 40ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User19"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User20"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User21"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User22"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1 [["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User23"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User24"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User25"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User26"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["name", "User27"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Fri, 11 Apr 2014 19:17:15 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User28"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Completed 500 Internal Server Error in 31ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User29"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Completed 500 Internal Server Error in 11ms
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User30"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Completed 500 Internal Server Error in 9ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User31"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1[0m [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 32ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User32"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Completed 500 Internal Server Error in 9ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User33"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User34"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Completed 500 Internal Server Error in 7ms
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (20.0ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 177ms (Views: 176.0ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User35"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User36"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-11 21:17:16 +0200
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User37"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User38"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User39"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User40"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User41"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User42"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User43"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User44"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User45"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User46"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 43ms (Views: 38.7ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User47"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User48"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["name", "User49"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Fri, 11 Apr 2014 19:17:16 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (46.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (49.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 61ms (Views: 55.1ms | ActiveRecord: 1.3ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User50"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User51"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User52"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User53"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User54"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.2ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (32.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 54ms (Views: 49.8ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User55"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["name", "User56"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:17:17 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 46ms (Views: 44.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User1"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 1"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 21:18:59 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "Admin"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["site_id", 1], ["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 2]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User2"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 2"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_contents" WHERE "odania_contents"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User3"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 3"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (40.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 98ms (Views: 93.0ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User4"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 4"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User5"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 5"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "title" = ?, "body" = ?, "body_short" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["title", "Test Title"], ["body", "ContentBody"], ["body_short", "Short"], ["body_filtered", "ContentBody"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User6"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 6"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User7"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 7"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35mSQL (26.8ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User8"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 8"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "en"], ["name", "Engilish"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_languages" WHERE "odania_languages"."id" = ?[0m [["id", 2]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short19"], ["name", "Language19"]]
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short21"], ["name", "Language21"]]
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_languages" SET "name" = ?, "iso_639_1" = ? WHERE "odania_languages"."id" = 2 [["name", "Engilish"], ["iso_639_1", "en"]]
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (7.4ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short22"], ["name", "Language22"]]
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User9"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 9"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", true], ["is_default", false], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User10"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 2], ["title", "Site 10"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", true], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["name", "User11"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 11"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:18:59 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User12"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 12"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (43.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 49ms (Views: 46.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User13"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 13"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User14"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 14"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "title" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"], ["full_path", "test-title"], ["position", 5]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User15"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 15"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User16"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 16"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User17"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 17"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User18"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 18"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["published", true], ["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User19"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 19"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User20"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 20"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User21"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 21"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User22"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 22"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1 [["title", "Test Title"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User23"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 23"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User24"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 24"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User25"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 25"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.8ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User26"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 26"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", true], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User27"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 27"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User28"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 28"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User29"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 29"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User30"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 30"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User31"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 31"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "name" = ?, "host" = ?, "tracking_code" = ?, "description" = ? WHERE "odania_sites"."id" = 1 [["name", "Page1"], ["host", "www.test.de"], ["tracking_code", "TRACK"], ["description", "description is here"]]
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User32"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 32"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User33"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 33"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["name", "User34"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 34"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", true], ["is_default", false], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", true], ["is_default", false], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36mOdania::Menu Exists (2.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 2], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", true], ["is_default", false], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", true], ["name", "RedirectSite"], ["redirect_to_id", 2]]
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain4.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:00 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.7ms)
Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 21:19:00 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User35"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 35"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User36"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 36"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
Started GET "/asd" for 127.0.0.1 at 2014-04-11 21:19:01 +0200
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User37"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User38"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User39"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["site_id", 1], ["title", "asd123"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User40"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 37"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User41"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 38"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1[0m [["target_data", "---\nurl: http://www.planetech.de\n"], ["position", 2]]
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 43ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User42"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 39"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User43"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 40"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title103"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", true], ["is_default", false], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain5.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 2]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User44"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 41"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User45"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 42"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User46"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 43"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User47"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 44"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User48"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 45"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User49"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 4], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 46"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 3], ["views", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2 [["target_type", "CONTENT_LIST"], ["target_data", "--- {}\n"], ["position", 3]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-45"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-45' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (34.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (37.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.1ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 49ms (Views: 43.8ms | ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User50"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 47"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User51"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 48"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["position", 2]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User52"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 49"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User53"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 3], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 50"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 2], ["views", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.2ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "parent_id" = ?, "full_path" = ?, "position" = ? WHERE "odania_menu_items"."id" = 2[0m [["target_type", "CONTENT"], ["target_data", "---\nid: 2\n"], ["parent_id", 1], ["full_path", "title109/title110"], ["position", 1]]
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User54"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 51"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "target_type" = ?, "target_data" = ?, "position" = ? WHERE "odania_menu_items"."id" = 1 [["target_type", "CONTENT"], ["target_data", "---\nid: 1\n"], ["position", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "menu_item_id" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["menu_item_id", 1], ["body_filtered", "This is a ABC-Tag test"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 1]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User55"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 52"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", true], ["is_default", true], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["name", "User56"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["is_active", true], ["language_id", 2], ["published_at", Wed, 12 Feb 2014 21:54:11 UTC +00:00], ["site_id", 1], ["title", "Site 53"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00], ["language_id", 1], ["published", true], ["site_id", 1], ["title", "MyString"], ["updated_at", Fri, 11 Apr 2014 19:19:01 UTC +00:00]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", true], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.3ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.585683"], ["name", "User1"], ["updated_at", "2014-04-11 20:59:52.585683"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.611655"], ["name", "User2"], ["updated_at", "2014-04-11 20:59:52.611655"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.622201"], ["name", "User3"], ["updated_at", "2014-04-11 20:59:52.622201"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.662437"], ["name", "User4"], ["updated_at", "2014-04-11 20:59:52.662437"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.673175"], ["name", "User5"], ["updated_at", "2014-04-11 20:59:52.673175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.684660"], ["name", "User6"], ["updated_at", "2014-04-11 20:59:52.684660"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.695262"], ["name", "User7"], ["updated_at", "2014-04-11 20:59:52.695262"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.706194"], ["name", "User8"], ["updated_at", "2014-04-11 20:59:52.706194"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 38ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_languages" WHERE "odania_languages"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 20:59:52.827225"], ["name", "Admin"], ["updated_at", "2014-04-11 20:59:52.827225"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (7.8ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (89.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 8366ms (Views: 8363.4ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (39.4ms)
[1m[36mOdania::Site Load (0.4ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 75ms (Views: 72.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2 [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.304248"], ["name", "User9"], ["updated_at", "2014-04-11 21:00:01.304248"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.316725"], ["name", "User10"], ["updated_at", "2014-04-11 21:00:01.316725"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.326637"], ["name", "User11"], ["updated_at", "2014-04-11 21:00:01.326637"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.336538"], ["name", "User12"], ["updated_at", "2014-04-11 21:00:01.336538"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.346559"], ["name", "User13"], ["updated_at", "2014-04-11 21:00:01.346559"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.356616"], ["name", "User14"], ["updated_at", "2014-04-11 21:00:01.356616"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.367463"], ["name", "User15"], ["updated_at", "2014-04-11 21:00:01.367463"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.379052"], ["name", "User16"], ["updated_at", "2014-04-11 21:00:01.379052"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (2.4ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.429027"], ["name", "User17"], ["updated_at", "2014-04-11 21:00:01.429027"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.438973"], ["name", "User18"], ["updated_at", "2014-04-11 21:00:01.438973"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.449604"], ["name", "User19"], ["updated_at", "2014-04-11 21:00:01.449604"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.459911"], ["name", "User20"], ["updated_at", "2014-04-11 21:00:01.459911"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.470816"], ["name", "User21"], ["updated_at", "2014-04-11 21:00:01.470816"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.483811"], ["name", "User22"], ["updated_at", "2014-04-11 21:00:01.483811"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.495619"], ["name", "User23"], ["updated_at", "2014-04-11 21:00:01.495619"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.506582"], ["name", "User24"], ["updated_at", "2014-04-11 21:00:01.506582"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.519882"], ["name", "User25"], ["updated_at", "2014-04-11 21:00:01.519882"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.529807"], ["name", "User26"], ["updated_at", "2014-04-11 21:00:01.529807"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.540195"], ["name", "User27"], ["updated_at", "2014-04-11 21:00:01.540195"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.550960"], ["name", "User28"], ["updated_at", "2014-04-11 21:00:01.550960"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (1.9ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.598235"], ["name", "User29"], ["updated_at", "2014-04-11 21:00:01.598235"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.608787"], ["name", "User30"], ["updated_at", "2014-04-11 21:00:01.608787"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.619219"], ["name", "User31"], ["updated_at", "2014-04-11 21:00:01.619219"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.629678"], ["name", "User32"], ["updated_at", "2014-04-11 21:00:01.629678"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.640040"], ["name", "User33"], ["updated_at", "2014-04-11 21:00:01.640040"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.653000"], ["name", "User34"], ["updated_at", "2014-04-11 21:00:01.653000"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.665600"], ["name", "User35"], ["updated_at", "2014-04-11 21:00:01.665600"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.676036"], ["name", "User36"], ["updated_at", "2014-04-11 21:00:01.676036"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.686554"], ["name", "User37"], ["updated_at", "2014-04-11 21:00:01.686554"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.696362"], ["name", "User38"], ["updated_at", "2014-04-11 21:00:01.696362"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.706713"], ["name", "User39"], ["updated_at", "2014-04-11 21:00:01.706713"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.717561"], ["name", "User40"], ["updated_at", "2014-04-11 21:00:01.717561"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (1.9ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.763990"], ["name", "User41"], ["updated_at", "2014-04-11 21:00:01.763990"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.777307"], ["name", "User42"], ["updated_at", "2014-04-11 21:00:01.777307"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.787947"], ["name", "User43"], ["updated_at", "2014-04-11 21:00:01.787947"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:01.798130"], ["name", "User44"], ["updated_at", "2014-04-11 21:00:01.798130"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:00:01 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:00:01 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain1.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 32ms (Views: 31.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:01.933417"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:01.933417"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:02 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:02 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:02 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain3.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:02.119848"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:02.119848"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:00:02 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:00:02 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:02.140897"], ["name", "User45"], ["updated_at", "2014-04-11 21:00:02.140897"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:02.150520"], ["name", "User46"], ["updated_at", "2014-04-11 21:00:02.150520"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:02.197498"], ["name", "User47"], ["updated_at", "2014-04-11 21:00:02.197498"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:02.228046"], ["name", "User48"], ["updated_at", "2014-04-11 21:00:02.228046"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:02.237214"], ["name", "User49"], ["updated_at", "2014-04-11 21:00:02.237214"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:13.410058"], ["name", "User1"], ["updated_at", "2014-04-11 21:00:13.410058"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.443267"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:00:13.443267"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.454400"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.454400"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.585127"], ["name", "User2"], ["updated_at", "2014-04-11 21:00:13.585127"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.587168"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:00:13.587168"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:13.590248"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.590248"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:13.601329"], ["name", "User3"], ["updated_at", "2014-04-11 21:00:13.601329"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.603290"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:00:13.603290"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.606356"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.606356"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.617914"], ["name", "User4"], ["updated_at", "2014-04-11 21:00:13.617914"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.651076"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:00:13.651076"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:13.654703"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.654703"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:13.665341"], ["name", "User5"], ["updated_at", "2014-04-11 21:00:13.665341"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.667420"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:00:13.667420"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.670677"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.670677"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.681155"], ["name", "User6"], ["updated_at", "2014-04-11 21:00:13.681155"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.683504"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:00:13.683504"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:13.686658"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.686658"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:13.697840"], ["name", "User7"], ["updated_at", "2014-04-11 21:00:13.697840"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.699720"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:00:13.699720"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.703304"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.703304"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.714071"], ["name", "User8"], ["updated_at", "2014-04-11 21:00:13.714071"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.715929"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:00:13.715929"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:13.718801"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.718801"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_languages" WHERE "odania_languages"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:13.763678"], ["name", "Admin"], ["updated_at", "2014-04-11 21:00:13.763678"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (38.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 118ms (Views: 115.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2 [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages"[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.954912"], ["name", "User9"], ["updated_at", "2014-04-11 21:00:13.954912"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:00:13.956801"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:00:13.956801"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:13.958695"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:13.958695"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.008170"], ["name", "User10"], ["updated_at", "2014-04-11 21:00:14.008170"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.010408"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 10"], ["updated_at", "2014-04-11 21:00:14.010408"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.012913"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.012913"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.023842"], ["name", "User11"], ["updated_at", "2014-04-11 21:00:14.023842"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.026201"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:00:14.026201"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.028850"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.028850"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.040263"], ["name", "User12"], ["updated_at", "2014-04-11 21:00:14.040263"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.042526"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:00:14.042526"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.044905"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.044905"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.056213"], ["name", "User13"], ["updated_at", "2014-04-11 21:00:14.056213"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.058815"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:00:14.058815"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.061495"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.061495"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.073392"], ["name", "User14"], ["updated_at", "2014-04-11 21:00:14.073392"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.075327"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:00:14.075327"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.077301"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.077301"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.088258"], ["name", "User15"], ["updated_at", "2014-04-11 21:00:14.088258"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.090349"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:00:14.090349"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.092869"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.092869"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.104652"], ["name", "User16"], ["updated_at", "2014-04-11 21:00:14.104652"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.107128"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:00:14.107128"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.109462"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.109462"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.123834"], ["name", "User17"], ["updated_at", "2014-04-11 21:00:14.123834"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.125859"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:00:14.125859"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.128140"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.128140"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.176232"], ["name", "User18"], ["updated_at", "2014-04-11 21:00:14.176232"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.178375"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:00:14.178375"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.180705"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.180705"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.192633"], ["name", "User19"], ["updated_at", "2014-04-11 21:00:14.192633"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.194679"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:00:14.194679"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.196906"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.196906"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.208542"], ["name", "User20"], ["updated_at", "2014-04-11 21:00:14.208542"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.210708"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:00:14.210708"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.212970"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.212970"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.224851"], ["name", "User21"], ["updated_at", "2014-04-11 21:00:14.224851"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.227067"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:00:14.227067"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.229347"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.229347"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.244904"], ["name", "User22"], ["updated_at", "2014-04-11 21:00:14.244904"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.247295"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:00:14.247295"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.249780"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.249780"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.262909"], ["name", "User23"], ["updated_at", "2014-04-11 21:00:14.262909"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.264965"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:00:14.264965"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.267212"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.267212"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.279088"], ["name", "User24"], ["updated_at", "2014-04-11 21:00:14.279088"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.281173"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:00:14.281173"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.283340"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.283340"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.297633"], ["name", "User25"], ["updated_at", "2014-04-11 21:00:14.297633"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.299657"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:00:14.299657"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.315148"], ["name", "User26"], ["updated_at", "2014-04-11 21:00:14.315148"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.317183"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:00:14.317183"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.331022"], ["name", "User27"], ["updated_at", "2014-04-11 21:00:14.331022"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.373530"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:00:14.373530"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (81.4ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 92ms (Views: 87.9ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.476902"], ["name", "User28"], ["updated_at", "2014-04-11 21:00:14.476902"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.481133"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:00:14.481133"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.505675"], ["name", "User29"], ["updated_at", "2014-04-11 21:00:14.505675"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.507695"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:00:14.507695"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.527742"], ["name", "User30"], ["updated_at", "2014-04-11 21:00:14.527742"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.529884"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:00:14.529884"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.544145"], ["name", "User31"], ["updated_at", "2014-04-11 21:00:14.544145"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.545998"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:00:14.545998"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.564733"], ["name", "User32"], ["updated_at", "2014-04-11 21:00:14.564733"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.566836"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:00:14.566836"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.3ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.579608"], ["name", "User33"], ["updated_at", "2014-04-11 21:00:14.579608"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.581510"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:00:14.581510"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.601320"], ["name", "User34"], ["updated_at", "2014-04-11 21:00:14.601320"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.603221"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:00:14.603221"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.655216"], ["name", "User35"], ["updated_at", "2014-04-11 21:00:14.655216"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.657103"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:00:14.657103"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.659116"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.659116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.669856"], ["name", "User36"], ["updated_at", "2014-04-11 21:00:14.669856"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.672124"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:00:14.672124"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.674438"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.674438"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.685918"], ["name", "User37"], ["updated_at", "2014-04-11 21:00:14.685918"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.687972"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:00:14.687972"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.690158"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.690158"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.701906"], ["name", "User38"], ["updated_at", "2014-04-11 21:00:14.701906"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.704056"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:00:14.704056"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.706200"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.706200"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.717354"], ["name", "User39"], ["updated_at", "2014-04-11 21:00:14.717354"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.719423"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:00:14.719423"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.721523"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.721523"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.732815"], ["name", "User40"], ["updated_at", "2014-04-11 21:00:14.732815"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.735141"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:00:14.735141"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.737301"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.737301"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.748638"], ["name", "User41"], ["updated_at", "2014-04-11 21:00:14.748638"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.750557"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:00:14.750557"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.752636"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.752636"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.765863"], ["name", "User42"], ["updated_at", "2014-04-11 21:00:14.765863"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.767921"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:00:14.767921"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.770078"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.770078"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.781359"], ["name", "User43"], ["updated_at", "2014-04-11 21:00:14.781359"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.8ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.820967"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:00:14.820967"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.823467"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.823467"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:14.835593"], ["name", "User44"], ["updated_at", "2014-04-11 21:00:14.835593"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.837556"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:00:14.837556"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.839612"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.839612"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain1.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.883067"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.883067"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain3.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:14.924785"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.924785"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:00:14 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.945815"], ["name", "User45"], ["updated_at", "2014-04-11 21:00:14.945815"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.947766"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:00:14.947766"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.949761"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.949761"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.961533"], ["name", "User46"], ["updated_at", "2014-04-11 21:00:14.961533"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:00:14.963517"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:00:14.963517"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:14.965566"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:14.965566"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:15.015869"], ["name", "User47"], ["updated_at", "2014-04-11 21:00:15.015869"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:00:15.021796"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:15.019386"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:15.021796"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:15.076165"], ["name", "User48"], ["updated_at", "2014-04-11 21:00:15.076165"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:00:15.078857"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:15.077141"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:15.078857"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:00:15.088907"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:15.102877"], ["name", "User49"], ["updated_at", "2014-04-11 21:00:15.102877"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:00:15.105470"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:15.103817"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:15.105470"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:00:15.116432"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:31.663784"], ["name", "User1"], ["updated_at", "2014-04-11 21:00:31.663784"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:00:31.696985"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:00:31.696985"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:31.707739"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:31.707739"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:00:31 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:31.809292"], ["name", "Admin"], ["updated_at", "2014-04-11 21:00:31.809292"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:00:31.811145"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:00:31.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:00:31.811145"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:31.821435"], ["name", "User2"], ["updated_at", "2014-04-11 21:00:31.821435"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:00:31.823585"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:00:31.823585"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:31.827032"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:31.827032"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:31.883982"], ["name", "User3"], ["updated_at", "2014-04-11 21:00:31.883982"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:00:31.885885"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:00:31.885885"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:31.889175"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:31.889175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (24.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 103ms (Views: 100.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.044524"], ["name", "User4"], ["updated_at", "2014-04-11 21:00:32.044524"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.046350"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:00:32.046350"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.049458"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.049458"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.077316"], ["name", "User5"], ["updated_at", "2014-04-11 21:00:32.077316"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.079348"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:00:32.079348"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.082620"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.082620"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:00:32.095881"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.105599"], ["name", "User6"], ["updated_at", "2014-04-11 21:00:32.105599"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.107592"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:00:32.107592"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.110738"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.110738"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.136649"], ["name", "User7"], ["updated_at", "2014-04-11 21:00:32.136649"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.138724"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:00:32.138724"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.141950"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.141950"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.162991"], ["name", "User8"], ["updated_at", "2014-04-11 21:00:32.162991"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.164975"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:00:32.164975"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.168688"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.168688"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.357003"], ["name", "User9"], ["updated_at", "2014-04-11 21:00:32.357003"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.359004"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:00:32.359004"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.361097"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.361097"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.376534"], ["name", "User10"], ["updated_at", "2014-04-11 21:00:32.376534"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.378411"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:00:32.378411"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.395784"], ["name", "User11"], ["updated_at", "2014-04-11 21:00:32.395784"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.397659"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:00:32.397659"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.399689"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.399689"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.422407"], ["name", "User12"], ["updated_at", "2014-04-11 21:00:32.422407"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.424261"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:00:32.424261"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.426141"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.426141"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.457082"], ["name", "User13"], ["updated_at", "2014-04-11 21:00:32.457082"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.458974"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:00:32.458974"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.460905"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.460905"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (1.5ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.535081"], ["name", "User14"], ["updated_at", "2014-04-11 21:00:32.535081"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.537322"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:00:32.537322"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.539589"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.539589"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.563051"], ["name", "User15"], ["updated_at", "2014-04-11 21:00:32.563051"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.565079"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:00:32.565079"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.567285"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.567285"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.595220"], ["name", "User16"], ["updated_at", "2014-04-11 21:00:32.595220"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.597111"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:00:32.597111"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.599101"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.599101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.619253"], ["name", "User17"], ["updated_at", "2014-04-11 21:00:32.619253"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.621338"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:00:32.621338"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.623428"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.623428"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.651511"], ["name", "User18"], ["updated_at", "2014-04-11 21:00:32.651511"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.653336"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:00:32.653336"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.655244"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.655244"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.667641"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:00:32.667641"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.677037"], ["name", "User19"], ["updated_at", "2014-04-11 21:00:32.677037"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.678981"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:00:32.678981"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.681010"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.681010"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.741963"], ["name", "User20"], ["updated_at", "2014-04-11 21:00:32.741963"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.743922"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:00:32.743922"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.745849"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.745849"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (5.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 38ms (Views: 35.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.801578"], ["name", "User21"], ["updated_at", "2014-04-11 21:00:32.801578"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.803854"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:00:32.803854"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:32.806461"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.806461"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.837746"], ["name", "User22"], ["updated_at", "2014-04-11 21:00:32.837746"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.839820"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:00:32.839820"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.842475"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.842475"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:00:32.856287"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.865203"], ["name", "User23"], ["updated_at", "2014-04-11 21:00:32.865203"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.867187"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:00:32.867187"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.869469"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.869469"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.897277"], ["name", "User24"], ["updated_at", "2014-04-11 21:00:32.897277"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.899232"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:00:32.899232"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.901235"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.901235"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.920971"], ["name", "User25"], ["updated_at", "2014-04-11 21:00:32.920971"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.922857"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:00:32.922857"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:32.924814"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:32.924814"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:32.952836"], ["name", "User26"], ["updated_at", "2014-04-11 21:00:32.952836"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:00:32.954689"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:00:32.954689"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (39.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.010337"], ["name", "User27"], ["updated_at", "2014-04-11 21:00:33.010337"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.012293"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:00:33.012293"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.025686"], ["name", "User28"], ["updated_at", "2014-04-11 21:00:33.025686"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.027737"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:00:33.027737"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 20ms (Views: 16.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.058394"], ["name", "User29"], ["updated_at", "2014-04-11 21:00:33.058394"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.060363"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:00:33.060363"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 17ms (Views: 13.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:33.087936"], ["name", "User30"], ["updated_at", "2014-04-11 21:00:33.087936"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.089985"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:00:33.089985"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:33.112058"], ["name", "User31"], ["updated_at", "2014-04-11 21:00:33.112058"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.114046"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:00:33.114046"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:33.129024"], ["name", "User32"], ["updated_at", "2014-04-11 21:00:33.129024"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.131138"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:00:33.131138"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.163842"], ["name", "User33"], ["updated_at", "2014-04-11 21:00:33.163842"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.165927"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:00:33.165927"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:33.178779"], ["name", "User34"], ["updated_at", "2014-04-11 21:00:33.178779"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.180748"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:00:33.180748"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:33.201666"], ["name", "User35"], ["updated_at", "2014-04-11 21:00:33.201666"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.203504"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:00:33.203504"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.258222"], ["name", "User36"], ["updated_at", "2014-04-11 21:00:33.258222"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.260209"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:00:33.260209"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.262285"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:33.262285"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.280668"], ["name", "User37"], ["updated_at", "2014-04-11 21:00:33.280668"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.282732"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:00:33.282732"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.284880"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:33.284880"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.300545"], ["name", "User38"], ["updated_at", "2014-04-11 21:00:33.300545"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.302617"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:00:33.302617"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.304759"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:33.304759"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 453ms (Views: 451.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.773570"], ["name", "User39"], ["updated_at", "2014-04-11 21:00:33.773570"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.775498"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:00:33.775498"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.777494"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:33.777494"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.782899"], ["name", "User40"], ["updated_at", "2014-04-11 21:00:33.782899"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.784778"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:00:33.784778"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:33.787979"], ["name", "User41"], ["updated_at", "2014-04-11 21:00:33.787979"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:00:33.789795"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:00:33.789795"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (29.3ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (17.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 3809ms (Views: 3805.3ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:37.612686"], ["name", "User42"], ["updated_at", "2014-04-11 21:00:37.612686"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.614573"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:00:37.614573"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:37.616676"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.616676"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:37.622182"], ["name", "User43"], ["updated_at", "2014-04-11 21:00:37.622182"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.624188"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:00:37.624188"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:37.627810"], ["name", "User44"], ["updated_at", "2014-04-11 21:00:37.627810"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.629745"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:00:37.629745"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (22.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (30.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 53ms (Views: 48.5ms | ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.696145"], ["name", "User45"], ["updated_at", "2014-04-11 21:00:37.696145"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.697991"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:00:37.697991"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.699964"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.699964"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.704965"], ["name", "User46"], ["updated_at", "2014-04-11 21:00:37.704965"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.706870"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:00:37.706870"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:00:37.709858"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.729594"], ["name", "User47"], ["updated_at", "2014-04-11 21:00:37.729594"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.731462"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:00:37.731462"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.733359"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.733359"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.738201"], ["name", "User48"], ["updated_at", "2014-04-11 21:00:37.738201"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.740020"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:00:37.740020"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:00:37.784647"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.808260"], ["name", "User49"], ["updated_at", "2014-04-11 21:00:37.808260"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.810194"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:00:37.810194"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.812237"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.812237"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:00:37.817241"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:00:37.820419"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.870691"], ["name", "User50"], ["updated_at", "2014-04-11 21:00:37.870691"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.872719"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:00:37.872719"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:37.874762"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.874762"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:37.889062"], ["name", "User51"], ["updated_at", "2014-04-11 21:00:37.889062"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:00:37.891274"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:00:37.891274"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:37.893491"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.893491"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 63ms (Views: 61.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:00:37 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:00:37 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:37.998893"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:37.998893"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:38.091121"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:38.091121"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (86.1ms)
Completed 200 OK in 94ms (Views: 93.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:38.207864"], ["name", "User52"], ["updated_at", "2014-04-11 21:00:38.207864"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:00:38.209823"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:00:38.209823"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:38.211983"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:38.211983"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:38.224945"], ["name", "User53"], ["updated_at", "2014-04-11 21:00:38.224945"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:00:38.226903"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:00:38.226903"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:38.228994"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:38.228994"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:00:38 +0200
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:38.239678"], ["name", "User54"], ["updated_at", "2014-04-11 21:00:38.239678"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:00:38.243061"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:38.240942"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:38.243061"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:38.257368"], ["name", "User55"], ["updated_at", "2014-04-11 21:00:38.257368"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:00:38.259804"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:38.258213"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:38.259804"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:00:38.270507"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:38.284390"], ["name", "User56"], ["updated_at", "2014-04-11 21:00:38.284390"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:00:38.287163"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:38.285392"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:38.287163"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:00:38.298330"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:46.671186"], ["name", "User1"], ["updated_at", "2014-04-11 21:00:46.671186"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:00:46.707130"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:00:46.707130"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:46.718482"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:46.718482"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:00:46 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:46.819275"], ["name", "Admin"], ["updated_at", "2014-04-11 21:00:46.819275"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:00:46.821038"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:00:46.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:00:46.821038"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:46.831648"], ["name", "User2"], ["updated_at", "2014-04-11 21:00:46.831648"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:00:46.833510"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:00:46.833510"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:46.836442"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:46.836442"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (30.5ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:46.892271"], ["name", "User3"], ["updated_at", "2014-04-11 21:00:46.892271"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:00:46.894185"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:00:46.894185"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:46.897099"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:46.897099"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 125ms (Views: 122.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.076577"], ["name", "User4"], ["updated_at", "2014-04-11 21:00:47.076577"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.078838"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:00:47.078838"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.082208"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.082208"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.112723"], ["name", "User5"], ["updated_at", "2014-04-11 21:00:47.112723"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.114665"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:00:47.114665"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.117762"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.117762"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:00:47.131639"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.141325"], ["name", "User6"], ["updated_at", "2014-04-11 21:00:47.141325"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.143206"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:00:47.143206"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.146118"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.146118"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.173194"], ["name", "User7"], ["updated_at", "2014-04-11 21:00:47.173194"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.175129"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:00:47.175129"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.178139"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.178139"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.197962"], ["name", "User8"], ["updated_at", "2014-04-11 21:00:47.197962"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.199895"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:00:47.199895"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.202963"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.202963"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (1.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.383664"], ["name", "User9"], ["updated_at", "2014-04-11 21:00:47.383664"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.385806"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:00:47.385806"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.388203"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.388203"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.403837"], ["name", "User10"], ["updated_at", "2014-04-11 21:00:47.403837"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.405741"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:00:47.405741"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.425883"], ["name", "User11"], ["updated_at", "2014-04-11 21:00:47.425883"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.428530"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:00:47.428530"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.430854"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.430854"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.455896"], ["name", "User12"], ["updated_at", "2014-04-11 21:00:47.455896"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.457881"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:00:47.457881"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.460276"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.460276"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (10.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 16.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.502034"], ["name", "User13"], ["updated_at", "2014-04-11 21:00:47.502034"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.504267"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:00:47.504267"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.506637"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.506637"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (1.3ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.577512"], ["name", "User14"], ["updated_at", "2014-04-11 21:00:47.577512"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.579625"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:00:47.579625"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.582065"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.582065"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.608612"], ["name", "User15"], ["updated_at", "2014-04-11 21:00:47.608612"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.610743"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:00:47.610743"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.613032"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.613032"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.641280"], ["name", "User16"], ["updated_at", "2014-04-11 21:00:47.641280"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.643249"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:00:47.643249"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.645213"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.645213"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.665046"], ["name", "User17"], ["updated_at", "2014-04-11 21:00:47.665046"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.667035"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:00:47.667035"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.669083"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.669083"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.698990"], ["name", "User18"], ["updated_at", "2014-04-11 21:00:47.698990"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.700811"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:00:47.700811"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.702760"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.702760"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.715781"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:00:47.715781"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.725059"], ["name", "User19"], ["updated_at", "2014-04-11 21:00:47.725059"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.726983"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:00:47.726983"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.729356"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.729356"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (1.5ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.792369"], ["name", "User20"], ["updated_at", "2014-04-11 21:00:47.792369"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.794310"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:00:47.794310"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.796336"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.796336"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.826182"], ["name", "User21"], ["updated_at", "2014-04-11 21:00:47.826182"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.828335"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:00:47.828335"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:47.830485"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.830485"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.861546"], ["name", "User22"], ["updated_at", "2014-04-11 21:00:47.861546"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.863530"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:00:47.863530"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.865523"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.865523"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:00:47.878077"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.887697"], ["name", "User23"], ["updated_at", "2014-04-11 21:00:47.887697"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.889715"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:00:47.889715"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.891849"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.891849"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.920149"], ["name", "User24"], ["updated_at", "2014-04-11 21:00:47.920149"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.922124"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:00:47.922124"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.924231"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.924231"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.944302"], ["name", "User25"], ["updated_at", "2014-04-11 21:00:47.944302"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.946184"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:00:47.946184"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:47.948231"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:47.948231"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:47.976679"], ["name", "User26"], ["updated_at", "2014-04-11 21:00:47.976679"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:00:47.978549"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:00:47.978549"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.034362"], ["name", "User27"], ["updated_at", "2014-04-11 21:00:48.034362"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.036268"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:00:48.036268"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.049366"], ["name", "User28"], ["updated_at", "2014-04-11 21:00:48.049366"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.051480"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:00:48.051480"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.076372"], ["name", "User29"], ["updated_at", "2014-04-11 21:00:48.076372"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.078381"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:00:48.078381"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.100657"], ["name", "User30"], ["updated_at", "2014-04-11 21:00:48.100657"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.102586"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:00:48.102586"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.122507"], ["name", "User31"], ["updated_at", "2014-04-11 21:00:48.122507"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.124499"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:00:48.124499"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.138831"], ["name", "User32"], ["updated_at", "2014-04-11 21:00:48.138831"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.140808"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:00:48.140808"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.160173"], ["name", "User33"], ["updated_at", "2014-04-11 21:00:48.160173"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.162112"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:00:48.162112"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.174312"], ["name", "User34"], ["updated_at", "2014-04-11 21:00:48.174312"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.176258"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:00:48.176258"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.196125"], ["name", "User35"], ["updated_at", "2014-04-11 21:00:48.196125"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.198008"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:00:48.198008"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.252355"], ["name", "User36"], ["updated_at", "2014-04-11 21:00:48.252355"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.254301"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:00:48.254301"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.256268"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.256268"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.273791"], ["name", "User37"], ["updated_at", "2014-04-11 21:00:48.273791"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.275684"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:00:48.275684"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.277578"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.277578"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.292291"], ["name", "User38"], ["updated_at", "2014-04-11 21:00:48.292291"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.294311"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:00:48.294311"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.296423"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.296423"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.315528"], ["name", "User39"], ["updated_at", "2014-04-11 21:00:48.315528"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.317403"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:00:48.317403"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.319401"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.319401"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.324969"], ["name", "User40"], ["updated_at", "2014-04-11 21:00:48.324969"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.327050"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:00:48.327050"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.330651"], ["name", "User41"], ["updated_at", "2014-04-11 21:00:48.330651"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.332695"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:00:48.332695"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 66ms (Views: 62.7ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.414315"], ["name", "User42"], ["updated_at", "2014-04-11 21:00:48.414315"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.416376"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:00:48.416376"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:48.418688"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.418688"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.424872"], ["name", "User43"], ["updated_at", "2014-04-11 21:00:48.424872"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.427117"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:00:48.427117"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.431191"], ["name", "User44"], ["updated_at", "2014-04-11 21:00:48.431191"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.433265"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:00:48.433265"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 14.3ms | ActiveRecord: 1.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.467570"], ["name", "User45"], ["updated_at", "2014-04-11 21:00:48.467570"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.469940"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:00:48.469940"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.472288"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.472288"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.477384"], ["name", "User46"], ["updated_at", "2014-04-11 21:00:48.477384"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (1.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.480459"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:00:48.480459"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:00:48.486730"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.507892"], ["name", "User47"], ["updated_at", "2014-04-11 21:00:48.507892"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.509774"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:00:48.509774"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.511712"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.511712"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.517051"], ["name", "User48"], ["updated_at", "2014-04-11 21:00:48.517051"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.519222"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:00:48.519222"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:00:48.524624"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (39.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.587916"], ["name", "User49"], ["updated_at", "2014-04-11 21:00:48.587916"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.590058"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:00:48.590058"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.592272"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.592272"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:00:48.597179"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:00:48.600204"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.632463"], ["name", "User50"], ["updated_at", "2014-04-11 21:00:48.632463"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.634384"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:00:48.634384"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.636393"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.636393"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.650636"], ["name", "User51"], ["updated_at", "2014-04-11 21:00:48.650636"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.652689"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:00:48.652689"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:48.655026"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.655026"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:48.706372"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.706372"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.750072"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.750072"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.827754"], ["name", "User52"], ["updated_at", "2014-04-11 21:00:48.827754"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.829709"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:00:48.829709"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:00:48.831796"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.831796"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.843395"], ["name", "User53"], ["updated_at", "2014-04-11 21:00:48.843395"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:00:48.845265"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:00:48.845265"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.847312"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:00:48.847312"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:00:48 +0200
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.858610"], ["name", "User54"], ["updated_at", "2014-04-11 21:00:48.858610"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:00:48.862455"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:48.860008"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:48.862455"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:00:48.876656"], ["name", "User55"], ["updated_at", "2014-04-11 21:00:48.876656"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:00:48.879291"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:48.877610"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:48.879291"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:00:48.889176"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:00:48.902169"], ["name", "User56"], ["updated_at", "2014-04-11 21:00:48.902169"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:00:48.905137"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:00:48.903212"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:00:48.905137"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:00:48.916152"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:11.240870"], ["name", "User1"], ["updated_at", "2014-04-11 21:07:11.240870"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.267206"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:07:11.267206"], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.282536"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.282536"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:07:11 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:11.397833"], ["name", "Admin"], ["updated_at", "2014-04-11 21:07:11.397833"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:07:11.400143"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:07:11.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:07:11.400143"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:11.411373"], ["name", "User2"], ["updated_at", "2014-04-11 21:07:11.411373"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.413320"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:07:11.413320"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.416404"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.416404"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.472160"], ["name", "User3"], ["updated_at", "2014-04-11 21:07:11.472160"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.474111"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:07:11.474111"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:11.477557"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.477557"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 201ms (Views: 198.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:11.736184"], ["name", "User4"], ["updated_at", "2014-04-11 21:07:11.736184"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.738260"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:07:11.738260"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.741451"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.741451"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.769953"], ["name", "User5"], ["updated_at", "2014-04-11 21:07:11.769953"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.771982"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:07:11.771982"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:11.775165"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.775165"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:07:11.788869"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:11.799451"], ["name", "User6"], ["updated_at", "2014-04-11 21:07:11.799451"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.801316"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:07:11.801316"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.804331"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.804331"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:11.830508"], ["name", "User7"], ["updated_at", "2014-04-11 21:07:11.830508"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.832483"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:07:11.832483"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.835530"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.835530"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:11.857609"], ["name", "User8"], ["updated_at", "2014-04-11 21:07:11.857609"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:07:11.859588"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:07:11.859588"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:11.862615"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:11.862615"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.061994"], ["name", "User9"], ["updated_at", "2014-04-11 21:07:12.061994"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.063893"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:07:12.063893"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.065800"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.065800"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.082159"], ["name", "User10"], ["updated_at", "2014-04-11 21:07:12.082159"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.084166"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:07:12.084166"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.102792"], ["name", "User11"], ["updated_at", "2014-04-11 21:07:12.102792"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.105017"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:07:12.105017"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.107228"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.107228"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.129106"], ["name", "User12"], ["updated_at", "2014-04-11 21:07:12.129106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.131012"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:07:12.131012"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.132980"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.132980"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.164575"], ["name", "User13"], ["updated_at", "2014-04-11 21:07:12.164575"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.166461"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:07:12.166461"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.168847"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.168847"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.237408"], ["name", "User14"], ["updated_at", "2014-04-11 21:07:12.237408"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.239542"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:07:12.239542"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.241543"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.241543"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.264568"], ["name", "User15"], ["updated_at", "2014-04-11 21:07:12.264568"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.266653"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:07:12.266653"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.268903"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.268903"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.295289"], ["name", "User16"], ["updated_at", "2014-04-11 21:07:12.295289"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.297162"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:07:12.297162"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.299183"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.299183"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.318793"], ["name", "User17"], ["updated_at", "2014-04-11 21:07:12.318793"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.320760"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:07:12.320760"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.322791"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.322791"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.351203"], ["name", "User18"], ["updated_at", "2014-04-11 21:07:12.351203"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.353065"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:07:12.353065"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.355125"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.355125"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.367950"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:07:12.367950"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.378626"], ["name", "User19"], ["updated_at", "2014-04-11 21:07:12.378626"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.381153"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:07:12.381153"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.383714"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.383714"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (2.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.459294"], ["name", "User20"], ["updated_at", "2014-04-11 21:07:12.459294"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.461852"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:07:12.461852"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.464845"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.464845"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.4ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (5.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (1.4ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (38.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (2.8ms)
Completed 200 OK in 121ms (Views: 113.9ms | ActiveRecord: 2.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.614870"], ["name", "User21"], ["updated_at", "2014-04-11 21:07:12.614870"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.617496"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:07:12.617496"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.620101"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.620101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.653052"], ["name", "User22"], ["updated_at", "2014-04-11 21:07:12.653052"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.655331"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:07:12.655331"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.657955"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.657955"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:07:12.674460"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.686031"], ["name", "User23"], ["updated_at", "2014-04-11 21:07:12.686031"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.688649"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:07:12.688649"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.691512"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.691512"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.726625"], ["name", "User24"], ["updated_at", "2014-04-11 21:07:12.726625"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.728892"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:07:12.728892"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.731266"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.731266"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.754428"], ["name", "User25"], ["updated_at", "2014-04-11 21:07:12.754428"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.756671"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:07:12.756671"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:12.759077"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:12.759077"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.792245"], ["name", "User26"], ["updated_at", "2014-04-11 21:07:12.792245"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.794411"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:07:12.794411"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.856604"], ["name", "User27"], ["updated_at", "2014-04-11 21:07:12.856604"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.858763"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:07:12.858763"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.873876"], ["name", "User28"], ["updated_at", "2014-04-11 21:07:12.873876"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.876155"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:07:12.876155"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (7.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 12.3ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:12.904974"], ["name", "User29"], ["updated_at", "2014-04-11 21:07:12.904974"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.907506"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:07:12.907506"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.934228"], ["name", "User30"], ["updated_at", "2014-04-11 21:07:12.934228"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.936524"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:07:12.936524"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.958298"], ["name", "User31"], ["updated_at", "2014-04-11 21:07:12.958298"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.960327"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:07:12.960327"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:12.976086"], ["name", "User32"], ["updated_at", "2014-04-11 21:07:12.976086"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:07:12.978653"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:07:12.978653"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.000634"], ["name", "User33"], ["updated_at", "2014-04-11 21:07:13.000634"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.002734"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:07:13.002734"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.016517"], ["name", "User34"], ["updated_at", "2014-04-11 21:07:13.016517"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.018671"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:07:13.018671"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.062456"], ["name", "User35"], ["updated_at", "2014-04-11 21:07:13.062456"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.064693"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:07:13.064693"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.130023"], ["name", "User36"], ["updated_at", "2014-04-11 21:07:13.130023"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.132126"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:07:13.132126"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.134367"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.134367"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.154233"], ["name", "User37"], ["updated_at", "2014-04-11 21:07:13.154233"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.156554"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:07:13.156554"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.159060"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.159060"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.175589"], ["name", "User38"], ["updated_at", "2014-04-11 21:07:13.175589"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.177771"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:07:13.177771"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.180379"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.180379"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.203161"], ["name", "User39"], ["updated_at", "2014-04-11 21:07:13.203161"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.205292"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:07:13.205292"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.207752"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.207752"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.213804"], ["name", "User40"], ["updated_at", "2014-04-11 21:07:13.213804"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.215903"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:07:13.215903"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.219446"], ["name", "User41"], ["updated_at", "2014-04-11 21:07:13.219446"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.221465"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:07:13.221465"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.5ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 73ms (Views: 68.3ms | ActiveRecord: 1.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.309771"], ["name", "User42"], ["updated_at", "2014-04-11 21:07:13.309771"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.312056"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:07:13.312056"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:13.314340"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.314340"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.320348"], ["name", "User43"], ["updated_at", "2014-04-11 21:07:13.320348"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.322498"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:07:13.322498"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.326218"], ["name", "User44"], ["updated_at", "2014-04-11 21:07:13.326218"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.328467"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:07:13.328467"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 19ms (Views: 14.6ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.363032"], ["name", "User45"], ["updated_at", "2014-04-11 21:07:13.363032"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.365147"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:07:13.365147"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.367587"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.367587"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.374804"], ["name", "User46"], ["updated_at", "2014-04-11 21:07:13.374804"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.377404"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:07:13.377404"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:07:13.381905"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.408173"], ["name", "User47"], ["updated_at", "2014-04-11 21:07:13.408173"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.410722"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:07:13.410722"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.413502"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.413502"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.420498"], ["name", "User48"], ["updated_at", "2014-04-11 21:07:13.420498"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.422611"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:07:13.422611"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:07:13.429065"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.506104"], ["name", "User49"], ["updated_at", "2014-04-11 21:07:13.506104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.508803"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:07:13.508803"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.511988"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.511988"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:07:13.519081"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:07:13.523855"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.560090"], ["name", "User50"], ["updated_at", "2014-04-11 21:07:13.560090"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.562200"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:07:13.562200"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.564466"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.564466"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.579847"], ["name", "User51"], ["updated_at", "2014-04-11 21:07:13.579847"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.581911"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:07:13.581911"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:13.584174"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.584174"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:13.648865"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.648865"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.697396"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.697396"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (44.7ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.783334"], ["name", "User52"], ["updated_at", "2014-04-11 21:07:13.783334"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.786018"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:07:13.786018"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:07:13.788955"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.788955"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.802919"], ["name", "User53"], ["updated_at", "2014-04-11 21:07:13.802919"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:07:13.805175"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:07:13.805175"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.807739"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:07:13.807739"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:07:13 +0200
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.821086"], ["name", "User54"], ["updated_at", "2014-04-11 21:07:13.821086"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:07:13.824783"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:07:13.822466"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:07:13.824783"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:07:13.841262"], ["name", "User55"], ["updated_at", "2014-04-11 21:07:13.841262"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:07:13.844187"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:07:13.842309"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:07:13.844187"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:07:13.857198"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:07:13.872637"], ["name", "User56"], ["updated_at", "2014-04-11 21:07:13.872637"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:07:13.875916"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:07:13.873780"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:07:13.875916"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:07:13.890830"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:43.961568"], ["name", "User1"], ["updated_at", "2014-04-11 21:18:43.961568"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:18:43.967810"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:18:43.967810"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:43.980909"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:43.980909"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:18:44 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.117378"], ["name", "Admin"], ["updated_at", "2014-04-11 21:18:44.117378"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:18:44.119378"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:18:44.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:18:44.119378"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.130856"], ["name", "User2"], ["updated_at", "2014-04-11 21:18:44.130856"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.132945"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:18:44.132945"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.136367"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.136367"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.194796"], ["name", "User3"], ["updated_at", "2014-04-11 21:18:44.194796"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.196930"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:18:44.196930"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:44.200177"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.200177"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 191ms (Views: 189.2ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.450378"], ["name", "User4"], ["updated_at", "2014-04-11 21:18:44.450378"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.452541"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:18:44.452541"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.456020"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.456020"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.493839"], ["name", "User5"], ["updated_at", "2014-04-11 21:18:44.493839"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.495988"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:18:44.495988"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:44.499598"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.499598"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:18:44.515954"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.527434"], ["name", "User6"], ["updated_at", "2014-04-11 21:18:44.527434"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.529538"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:18:44.529538"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.532920"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.532920"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.562099"], ["name", "User7"], ["updated_at", "2014-04-11 21:18:44.562099"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.564294"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:18:44.564294"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.567983"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.567983"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.590520"], ["name", "User8"], ["updated_at", "2014-04-11 21:18:44.590520"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.592625"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:18:44.592625"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:44.596066"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.596066"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.6ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.808360"], ["name", "User9"], ["updated_at", "2014-04-11 21:18:44.808360"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.810521"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:18:44.810521"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:44.813007"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.813007"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:44.830426"], ["name", "User10"], ["updated_at", "2014-04-11 21:18:44.830426"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.832631"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:18:44.832631"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.853257"], ["name", "User11"], ["updated_at", "2014-04-11 21:18:44.853257"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.855511"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:18:44.855511"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.858010"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.858010"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.883381"], ["name", "User12"], ["updated_at", "2014-04-11 21:18:44.883381"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.885757"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:18:44.885757"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.888261"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.888261"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (7.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.925968"], ["name", "User13"], ["updated_at", "2014-04-11 21:18:44.925968"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:18:44.928349"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:18:44.928349"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:44.930635"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:44.930635"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.006308"], ["name", "User14"], ["updated_at", "2014-04-11 21:18:45.006308"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.008962"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:18:45.008962"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.011495"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.011495"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.038797"], ["name", "User15"], ["updated_at", "2014-04-11 21:18:45.038797"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.040981"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:18:45.040981"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.043212"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.043212"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.072603"], ["name", "User16"], ["updated_at", "2014-04-11 21:18:45.072603"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.074712"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:18:45.074712"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.076993"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.076993"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.100486"], ["name", "User17"], ["updated_at", "2014-04-11 21:18:45.100486"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.102682"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:18:45.102682"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.105236"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.105236"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.137923"], ["name", "User18"], ["updated_at", "2014-04-11 21:18:45.137923"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.139963"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:18:45.139963"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.142147"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.142147"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.156536"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:18:45.156536"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.166954"], ["name", "User19"], ["updated_at", "2014-04-11 21:18:45.166954"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.169102"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:18:45.169102"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.171337"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.171337"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (1.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.237433"], ["name", "User20"], ["updated_at", "2014-04-11 21:18:45.237433"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.239628"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:18:45.239628"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.241823"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.241823"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.273261"], ["name", "User21"], ["updated_at", "2014-04-11 21:18:45.273261"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.275305"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:18:45.275305"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.277628"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.277628"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.307126"], ["name", "User22"], ["updated_at", "2014-04-11 21:18:45.307126"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.309095"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:18:45.309095"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.311227"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.311227"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:18:45.325576"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.334912"], ["name", "User23"], ["updated_at", "2014-04-11 21:18:45.334912"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.337247"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:18:45.337247"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.339636"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.339636"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.368278"], ["name", "User24"], ["updated_at", "2014-04-11 21:18:45.368278"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.370399"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:18:45.370399"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.372718"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.372718"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.394911"], ["name", "User25"], ["updated_at", "2014-04-11 21:18:45.394911"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.397008"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:18:45.397008"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.399234"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.399234"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.430261"], ["name", "User26"], ["updated_at", "2014-04-11 21:18:45.430261"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.432210"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:18:45.432210"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.494592"], ["name", "User27"], ["updated_at", "2014-04-11 21:18:45.494592"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.496658"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:18:45.496658"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.511351"], ["name", "User28"], ["updated_at", "2014-04-11 21:18:45.511351"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.513322"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:18:45.513322"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.539780"], ["name", "User29"], ["updated_at", "2014-04-11 21:18:45.539780"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.541788"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:18:45.541788"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.565078"], ["name", "User30"], ["updated_at", "2014-04-11 21:18:45.565078"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.567294"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:18:45.567294"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.588503"], ["name", "User31"], ["updated_at", "2014-04-11 21:18:45.588503"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.590590"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:18:45.590590"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.605272"], ["name", "User32"], ["updated_at", "2014-04-11 21:18:45.605272"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.607385"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:18:45.607385"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.628003"], ["name", "User33"], ["updated_at", "2014-04-11 21:18:45.628003"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.629991"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:18:45.629991"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.642899"], ["name", "User34"], ["updated_at", "2014-04-11 21:18:45.642899"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.645203"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:18:45.645203"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.665258"], ["name", "User35"], ["updated_at", "2014-04-11 21:18:45.665258"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.667851"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:18:45.667851"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.733982"], ["name", "User36"], ["updated_at", "2014-04-11 21:18:45.733982"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.736140"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:18:45.736140"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.738330"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.738330"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.757438"], ["name", "User37"], ["updated_at", "2014-04-11 21:18:45.757438"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.759569"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:18:45.759569"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.761857"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.761857"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.777930"], ["name", "User38"], ["updated_at", "2014-04-11 21:18:45.777930"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.780262"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:18:45.780262"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.782569"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.782569"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.803834"], ["name", "User39"], ["updated_at", "2014-04-11 21:18:45.803834"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.806169"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:18:45.806169"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.808774"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.808774"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.814820"], ["name", "User40"], ["updated_at", "2014-04-11 21:18:45.814820"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.816857"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:18:45.816857"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.820291"], ["name", "User41"], ["updated_at", "2014-04-11 21:18:45.820291"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.822260"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:18:45.822260"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.8ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.0ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 73ms (Views: 68.9ms | ActiveRecord: 1.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.910980"], ["name", "User42"], ["updated_at", "2014-04-11 21:18:45.910980"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.913252"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:18:45.913252"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:45.915589"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.915589"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.921414"], ["name", "User43"], ["updated_at", "2014-04-11 21:18:45.921414"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.923386"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:18:45.923386"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:45.926904"], ["name", "User44"], ["updated_at", "2014-04-11 21:18:45.926904"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.929126"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:18:45.929126"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 14.1ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.962642"], ["name", "User45"], ["updated_at", "2014-04-11 21:18:45.962642"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.964826"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:18:45.964826"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.967171"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:45.967171"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.972595"], ["name", "User46"], ["updated_at", "2014-04-11 21:18:45.972595"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:18:45.974597"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:18:45.974597"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:18:45.977689"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:45.999271"], ["name", "User47"], ["updated_at", "2014-04-11 21:18:45.999271"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.001413"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:18:46.001413"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.003651"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.003651"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.009814"], ["name", "User48"], ["updated_at", "2014-04-11 21:18:46.009814"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.011803"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:18:46.011803"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:18:46.017485"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.6ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.085193"], ["name", "User49"], ["updated_at", "2014-04-11 21:18:46.085193"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.087292"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:18:46.087292"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.089525"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.089525"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:18:46.094740"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:18:46.098327"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.133008"], ["name", "User50"], ["updated_at", "2014-04-11 21:18:46.133008"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.135070"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:18:46.135070"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.137325"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.137325"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:46.152345"], ["name", "User51"], ["updated_at", "2014-04-11 21:18:46.152345"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.154381"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:18:46.154381"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:46.156537"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.156537"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:46.209310"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.209310"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.255487"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.255487"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:46.335202"], ["name", "User52"], ["updated_at", "2014-04-11 21:18:46.335202"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.337169"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:18:46.337169"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:18:46.339280"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.339280"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.352943"], ["name", "User53"], ["updated_at", "2014-04-11 21:18:46.352943"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:18:46.355079"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:18:46.355079"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.357347"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:18:46.357347"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:18:46 +0200
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:46.369483"], ["name", "User54"], ["updated_at", "2014-04-11 21:18:46.369483"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:18:46.373304"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:18:46.371027"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:18:46.373304"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:18:46.388809"], ["name", "User55"], ["updated_at", "2014-04-11 21:18:46.388809"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:18:46.391561"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:18:46.389787"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:18:46.391561"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:18:46.402402"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:18:46.416890"], ["name", "User56"], ["updated_at", "2014-04-11 21:18:46.416890"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:18:46.420044"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:18:46.418087"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:18:46.420044"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:18:46.431627"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:00.860513"], ["name", "User1"], ["updated_at", "2014-04-11 21:22:00.860513"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:22:00.866774"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:22:00.866774"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:00.879089"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:00.879089"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:22:00 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:00.990459"], ["name", "Admin"], ["updated_at", "2014-04-11 21:22:00.990459"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:22:00.992642"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:22:00.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:22:00.992642"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.004920"], ["name", "User2"], ["updated_at", "2014-04-11 21:22:01.004920"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.007157"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:22:01.007157"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.010659"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.010659"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.072666"], ["name", "User3"], ["updated_at", "2014-04-11 21:22:01.072666"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.074816"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:22:01.074816"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.078341"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.078341"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (12.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 98ms (Views: 95.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.235884"], ["name", "User4"], ["updated_at", "2014-04-11 21:22:01.235884"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.238019"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:22:01.238019"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.241947"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.241947"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.274684"], ["name", "User5"], ["updated_at", "2014-04-11 21:22:01.274684"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.276801"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:22:01.276801"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.280369"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.280369"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:22:01.296803"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.307414"], ["name", "User6"], ["updated_at", "2014-04-11 21:22:01.307414"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.309949"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:22:01.309949"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.313726"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.313726"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.343266"], ["name", "User7"], ["updated_at", "2014-04-11 21:22:01.343266"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.345785"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:22:01.345785"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.349458"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.349458"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.372725"], ["name", "User8"], ["updated_at", "2014-04-11 21:22:01.372725"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.375068"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:22:01.375068"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.378516"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.378516"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.580910"], ["name", "User9"], ["updated_at", "2014-04-11 21:22:01.580910"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.582985"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:22:01.582985"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.585353"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.585353"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.601938"], ["name", "User10"], ["updated_at", "2014-04-11 21:22:01.601938"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.603988"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:22:01.603988"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.625241"], ["name", "User11"], ["updated_at", "2014-04-11 21:22:01.625241"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.627400"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:22:01.627400"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.629753"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.629753"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.653575"], ["name", "User12"], ["updated_at", "2014-04-11 21:22:01.653575"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.655862"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:22:01.655862"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.658128"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.658128"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.694447"], ["name", "User13"], ["updated_at", "2014-04-11 21:22:01.694447"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.697080"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:22:01.697080"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.699542"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.699542"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.775257"], ["name", "User14"], ["updated_at", "2014-04-11 21:22:01.775257"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.777428"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:22:01.777428"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.779645"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.779645"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.806483"], ["name", "User15"], ["updated_at", "2014-04-11 21:22:01.806483"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.808742"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:22:01.808742"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.811132"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.811132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.840096"], ["name", "User16"], ["updated_at", "2014-04-11 21:22:01.840096"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.842296"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:22:01.842296"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.844819"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.844819"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.868233"], ["name", "User17"], ["updated_at", "2014-04-11 21:22:01.868233"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.870326"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:22:01.870326"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.872873"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.872873"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.923371"], ["name", "User18"], ["updated_at", "2014-04-11 21:22:01.923371"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.925568"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:22:01.925568"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:01.928013"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.928013"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.943697"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:22:01.943697"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:01.954263"], ["name", "User19"], ["updated_at", "2014-04-11 21:22:01.954263"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:22:01.956415"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:22:01.956415"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:01.958673"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:01.958673"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (1.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.027403"], ["name", "User20"], ["updated_at", "2014-04-11 21:22:02.027403"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.029676"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:22:02.029676"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.032039"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.032039"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.064716"], ["name", "User21"], ["updated_at", "2014-04-11 21:22:02.064716"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.066975"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:22:02.066975"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.069314"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.069314"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.102127"], ["name", "User22"], ["updated_at", "2014-04-11 21:22:02.102127"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.104712"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:22:02.104712"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:02.107634"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.107634"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:22:02.122904"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.133264"], ["name", "User23"], ["updated_at", "2014-04-11 21:22:02.133264"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.135593"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:22:02.135593"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:02.138175"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.138175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.168029"], ["name", "User24"], ["updated_at", "2014-04-11 21:22:02.168029"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.170181"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:22:02.170181"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:02.172581"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.172581"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.196352"], ["name", "User25"], ["updated_at", "2014-04-11 21:22:02.196352"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.198563"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:22:02.198563"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:02.201002"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.201002"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.239978"], ["name", "User26"], ["updated_at", "2014-04-11 21:22:02.239978"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.242085"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:22:02.242085"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.303889"], ["name", "User27"], ["updated_at", "2014-04-11 21:22:02.303889"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.306031"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:22:02.306031"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.321132"], ["name", "User28"], ["updated_at", "2014-04-11 21:22:02.321132"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.323351"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:22:02.323351"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (7.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.352271"], ["name", "User29"], ["updated_at", "2014-04-11 21:22:02.352271"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.354668"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:22:02.354668"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.379530"], ["name", "User30"], ["updated_at", "2014-04-11 21:22:02.379530"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.381935"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:22:02.381935"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.404135"], ["name", "User31"], ["updated_at", "2014-04-11 21:22:02.404135"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.406402"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:22:02.406402"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.422333"], ["name", "User32"], ["updated_at", "2014-04-11 21:22:02.422333"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.424628"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:22:02.424628"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.445319"], ["name", "User33"], ["updated_at", "2014-04-11 21:22:02.445319"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.447596"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:22:02.447596"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.461921"], ["name", "User34"], ["updated_at", "2014-04-11 21:22:02.461921"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.464230"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:22:02.464230"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.488526"], ["name", "User35"], ["updated_at", "2014-04-11 21:22:02.488526"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.491061"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:22:02.491061"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.549958"], ["name", "User36"], ["updated_at", "2014-04-11 21:22:02.549958"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.552310"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:22:02.552310"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.554751"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.554751"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.578283"], ["name", "User37"], ["updated_at", "2014-04-11 21:22:02.578283"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.580444"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:22:02.580444"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.582924"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.582924"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.599836"], ["name", "User38"], ["updated_at", "2014-04-11 21:22:02.599836"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.602272"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:22:02.602272"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.604910"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.604910"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.626414"], ["name", "User39"], ["updated_at", "2014-04-11 21:22:02.626414"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.628939"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:22:02.628939"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.631735"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.631735"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.637966"], ["name", "User40"], ["updated_at", "2014-04-11 21:22:02.637966"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.640233"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:22:02.640233"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.644272"], ["name", "User41"], ["updated_at", "2014-04-11 21:22:02.644272"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.646462"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:22:02.646462"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.0ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.2ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 73ms (Views: 69.1ms | ActiveRecord: 1.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.736566"], ["name", "User42"], ["updated_at", "2014-04-11 21:22:02.736566"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.738802"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:22:02.738802"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:02.741221"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.741221"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.747534"], ["name", "User43"], ["updated_at", "2014-04-11 21:22:02.747534"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.749875"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:22:02.749875"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.753684"], ["name", "User44"], ["updated_at", "2014-04-11 21:22:02.753684"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.755845"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:22:02.755845"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 1.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.791363"], ["name", "User45"], ["updated_at", "2014-04-11 21:22:02.791363"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.793447"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:22:02.793447"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.795679"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.795679"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.802061"], ["name", "User46"], ["updated_at", "2014-04-11 21:22:02.802061"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.804506"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:22:02.804506"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:22:02.808164"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.832438"], ["name", "User47"], ["updated_at", "2014-04-11 21:22:02.832438"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.834558"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:22:02.834558"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.836751"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.836751"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.842623"], ["name", "User48"], ["updated_at", "2014-04-11 21:22:02.842623"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.844903"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:22:02.844903"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:22:02.851243"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.6ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.921324"], ["name", "User49"], ["updated_at", "2014-04-11 21:22:02.921324"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.923594"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:22:02.923594"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.926301"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.926301"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:22:02.931980"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:22:02.935775"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.976139"], ["name", "User50"], ["updated_at", "2014-04-11 21:22:02.976139"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:22:02.978341"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:22:02.978341"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:02.981086"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:02.981086"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:02.997921"], ["name", "User51"], ["updated_at", "2014-04-11 21:22:02.997921"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:22:03.000333"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:22:03.000333"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:03.002846"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:03.002846"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:03.058725"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:03.058725"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:03.106454"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:03.106454"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:03.191053"], ["name", "User52"], ["updated_at", "2014-04-11 21:22:03.191053"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:22:03.193632"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:22:03.193632"], ["user_id", 1], ["views", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:03.197709"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:03.197709"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:03.213106"], ["name", "User53"], ["updated_at", "2014-04-11 21:22:03.213106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:22:03.215450"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:22:03.215450"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:03.218077"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:03.218077"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:22:03 +0200
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:03.232441"], ["name", "User54"], ["updated_at", "2014-04-11 21:22:03.232441"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:22:03.236724"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:22:03.234133"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:22:03.236724"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:03.253464"], ["name", "User55"], ["updated_at", "2014-04-11 21:22:03.253464"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:22:03.256313"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:22:03.254412"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:22:03.256313"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:22:03.267417"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:03.282589"], ["name", "User56"], ["updated_at", "2014-04-11 21:22:03.282589"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:22:03.285363"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:22:03.283564"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:22:03.285363"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:22:03.298459"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:38.582121"], ["name", "User1"], ["updated_at", "2014-04-11 21:22:38.582121"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:22:38.589889"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:22:38.589889"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:38.603669"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:38.603669"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:22:38 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:38.738396"], ["name", "Admin"], ["updated_at", "2014-04-11 21:22:38.738396"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:22:38.740619"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:22:38.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:22:38.740619"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:38.753454"], ["name", "User2"], ["updated_at", "2014-04-11 21:22:38.753454"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:22:38.755496"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:22:38.755496"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:38.758947"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:38.758947"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:38.818670"], ["name", "User3"], ["updated_at", "2014-04-11 21:22:38.818670"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:22:38.820645"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:22:38.820645"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:38.824066"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:38.824066"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 93ms (Views: 90.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:38.976366"], ["name", "User4"], ["updated_at", "2014-04-11 21:22:38.976366"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:22:38.978386"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:22:38.978386"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:38.982430"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:38.982430"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.017801"], ["name", "User5"], ["updated_at", "2014-04-11 21:22:39.017801"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.019889"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:22:39.019889"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.023280"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.023280"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:22:39.037464"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.047101"], ["name", "User6"], ["updated_at", "2014-04-11 21:22:39.047101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.049198"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:22:39.049198"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.052598"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.052598"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.081074"], ["name", "User7"], ["updated_at", "2014-04-11 21:22:39.081074"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.083604"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:22:39.083604"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.088356"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.088356"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.112727"], ["name", "User8"], ["updated_at", "2014-04-11 21:22:39.112727"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.114815"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:22:39.114815"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.118544"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.118544"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.316687"], ["name", "User9"], ["updated_at", "2014-04-11 21:22:39.316687"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.318862"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:22:39.318862"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.321184"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.321184"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.340036"], ["name", "User10"], ["updated_at", "2014-04-11 21:22:39.340036"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.342281"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:22:39.342281"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.364308"], ["name", "User11"], ["updated_at", "2014-04-11 21:22:39.364308"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.366641"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:22:39.366641"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.369437"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.369437"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.395543"], ["name", "User12"], ["updated_at", "2014-04-11 21:22:39.395543"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.397870"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:22:39.397870"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.400308"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.400308"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (7.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.438829"], ["name", "User13"], ["updated_at", "2014-04-11 21:22:39.438829"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.441028"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:22:39.441028"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.443504"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.443504"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.523807"], ["name", "User14"], ["updated_at", "2014-04-11 21:22:39.523807"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.526101"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:22:39.526101"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.528606"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.528606"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.555001"], ["name", "User15"], ["updated_at", "2014-04-11 21:22:39.555001"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.557031"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:22:39.557031"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.559321"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.559321"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.588150"], ["name", "User16"], ["updated_at", "2014-04-11 21:22:39.588150"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.590115"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:22:39.590115"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.592306"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.592306"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.612699"], ["name", "User17"], ["updated_at", "2014-04-11 21:22:39.612699"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.614650"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:22:39.614650"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.617026"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.617026"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.650013"], ["name", "User18"], ["updated_at", "2014-04-11 21:22:39.650013"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.652133"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:22:39.652133"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.654324"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.654324"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.668335"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:22:39.668335"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.677558"], ["name", "User19"], ["updated_at", "2014-04-11 21:22:39.677558"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.679558"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:22:39.679558"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.682238"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.682238"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.750948"], ["name", "User20"], ["updated_at", "2014-04-11 21:22:39.750948"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.753347"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:22:39.753347"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.755699"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.755699"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.787330"], ["name", "User21"], ["updated_at", "2014-04-11 21:22:39.787330"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.789330"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:22:39.789330"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:39.791652"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.791652"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.821484"], ["name", "User22"], ["updated_at", "2014-04-11 21:22:39.821484"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.823739"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:22:39.823739"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.825970"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.825970"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:22:39.839918"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.849374"], ["name", "User23"], ["updated_at", "2014-04-11 21:22:39.849374"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.851647"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:22:39.851647"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.854238"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.854238"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.882110"], ["name", "User24"], ["updated_at", "2014-04-11 21:22:39.882110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.884044"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:22:39.884044"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.886212"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.886212"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.908475"], ["name", "User25"], ["updated_at", "2014-04-11 21:22:39.908475"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.910431"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:22:39.910431"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:39.912588"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:39.912588"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:39.942282"], ["name", "User26"], ["updated_at", "2014-04-11 21:22:39.942282"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:22:39.944250"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:22:39.944250"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (1.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.011526"], ["name", "User27"], ["updated_at", "2014-04-11 21:22:40.011526"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.013804"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:22:40.013804"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.029313"], ["name", "User28"], ["updated_at", "2014-04-11 21:22:40.029313"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.031581"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:22:40.031581"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.066533"], ["name", "User29"], ["updated_at", "2014-04-11 21:22:40.066533"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.068922"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:22:40.068922"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.8ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.092456"], ["name", "User30"], ["updated_at", "2014-04-11 21:22:40.092456"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.094740"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:22:40.094740"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.117152"], ["name", "User31"], ["updated_at", "2014-04-11 21:22:40.117152"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.119530"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:22:40.119530"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.135793"], ["name", "User32"], ["updated_at", "2014-04-11 21:22:40.135793"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.137957"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:22:40.137957"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.158032"], ["name", "User33"], ["updated_at", "2014-04-11 21:22:40.158032"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.160209"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:22:40.160209"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.173575"], ["name", "User34"], ["updated_at", "2014-04-11 21:22:40.173575"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.175624"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:22:40.175624"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.196454"], ["name", "User35"], ["updated_at", "2014-04-11 21:22:40.196454"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.198484"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:22:40.198484"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.256229"], ["name", "User36"], ["updated_at", "2014-04-11 21:22:40.256229"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.258260"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:22:40.258260"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.260547"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.260547"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.279827"], ["name", "User37"], ["updated_at", "2014-04-11 21:22:40.279827"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.281932"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:22:40.281932"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.284311"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.284311"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.300088"], ["name", "User38"], ["updated_at", "2014-04-11 21:22:40.300088"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.302326"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:22:40.302326"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.304542"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.304542"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.325415"], ["name", "User39"], ["updated_at", "2014-04-11 21:22:40.325415"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.327529"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:22:40.327529"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.329826"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.329826"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.335180"], ["name", "User40"], ["updated_at", "2014-04-11 21:22:40.335180"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.337109"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:22:40.337109"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.340638"], ["name", "User41"], ["updated_at", "2014-04-11 21:22:40.340638"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.342697"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:22:40.342697"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 72ms (Views: 67.2ms | ActiveRecord: 1.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.430460"], ["name", "User42"], ["updated_at", "2014-04-11 21:22:40.430460"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.432503"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:22:40.432503"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:40.434727"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.434727"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.440644"], ["name", "User43"], ["updated_at", "2014-04-11 21:22:40.440644"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.442813"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:22:40.442813"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.446477"], ["name", "User44"], ["updated_at", "2014-04-11 21:22:40.446477"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.448747"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:22:40.448747"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (8.9ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 13.9ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.484171"], ["name", "User45"], ["updated_at", "2014-04-11 21:22:40.484171"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.487282"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:22:40.487282"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.489956"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.489956"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.496031"], ["name", "User46"], ["updated_at", "2014-04-11 21:22:40.496031"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.497992"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:22:40.497992"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:22:40.501125"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.522716"], ["name", "User47"], ["updated_at", "2014-04-11 21:22:40.522716"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.525010"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:22:40.525010"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.527319"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.527319"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.533004"], ["name", "User48"], ["updated_at", "2014-04-11 21:22:40.533004"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.535114"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:22:40.535114"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:22:40.540979"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.5ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.607184"], ["name", "User49"], ["updated_at", "2014-04-11 21:22:40.607184"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.609499"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:22:40.609499"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.612043"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.612043"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:22:40.617739"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:22:40.621461"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.657947"], ["name", "User50"], ["updated_at", "2014-04-11 21:22:40.657947"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.659998"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:22:40.659998"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.662588"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.662588"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.677584"], ["name", "User51"], ["updated_at", "2014-04-11 21:22:40.677584"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.679540"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:22:40.679540"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:40.681655"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.681655"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:40.734326"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.734326"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.781321"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.781321"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.2ms)
Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.861845"], ["name", "User52"], ["updated_at", "2014-04-11 21:22:40.861845"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.863859"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:22:40.863859"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:22:40.866105"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.866105"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.878854"], ["name", "User53"], ["updated_at", "2014-04-11 21:22:40.878854"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:22:40.880914"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:22:40.880914"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.883084"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:22:40.883084"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:22:40 +0200
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.894588"], ["name", "User54"], ["updated_at", "2014-04-11 21:22:40.894588"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:22:40.898551"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:22:40.895995"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:22:40.898551"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:22:40.914850"], ["name", "User55"], ["updated_at", "2014-04-11 21:22:40.914850"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:22:40.917687"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:22:40.915977"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:22:40.917687"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:22:40.929001"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:22:40.943875"], ["name", "User56"], ["updated_at", "2014-04-11 21:22:40.943875"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:22:40.946569"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:22:40.944812"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:22:40.946569"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:22:40.959628"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.293066"], ["name", "User1"], ["updated_at", "2014-04-11 21:24:09.293066"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.298867"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-11 21:24:09.298867"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.311364"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.311364"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-11 23:24:09 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.435013"], ["name", "Admin"], ["updated_at", "2014-04-11 21:24:09.435013"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-11 21:24:09.436952"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-11 21:24:09.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-11 21:24:09.436952"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.449214"], ["name", "User2"], ["updated_at", "2014-04-11 21:24:09.449214"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.451731"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-11 21:24:09.451731"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.455607"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.455607"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.516194"], ["name", "User3"], ["updated_at", "2014-04-11 21:24:09.516194"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.518134"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-11 21:24:09.518134"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:09.521555"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.521555"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 90ms (Views: 88.0ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (1.8ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.669411"], ["name", "User4"], ["updated_at", "2014-04-11 21:24:09.669411"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.671399"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-11 21:24:09.671399"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.674896"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.674896"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.704874"], ["name", "User5"], ["updated_at", "2014-04-11 21:24:09.704874"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.707090"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-11 21:24:09.707090"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:09.710595"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.710595"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:24:09.725063"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.735726"], ["name", "User6"], ["updated_at", "2014-04-11 21:24:09.735726"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.737697"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-11 21:24:09.737697"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.741202"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.741202"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.769857"], ["name", "User7"], ["updated_at", "2014-04-11 21:24:09.769857"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.771950"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-11 21:24:09.771950"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.775291"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.775291"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:09.798726"], ["name", "User8"], ["updated_at", "2014-04-11 21:24:09.798726"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.800976"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-11 21:24:09.800976"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:09.804741"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.804741"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:09.993828"], ["name", "User9"], ["updated_at", "2014-04-11 21:24:09.993828"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-11 21:24:09.995837"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-11 21:24:09.995837"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:09.998335"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:09.998335"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.014048"], ["name", "User10"], ["updated_at", "2014-04-11 21:24:10.014048"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.016038"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-11 21:24:10.016038"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.034965"], ["name", "User11"], ["updated_at", "2014-04-11 21:24:10.034965"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.036978"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-11 21:24:10.036978"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.039080"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.039080"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.062680"], ["name", "User12"], ["updated_at", "2014-04-11 21:24:10.062680"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.064702"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-11 21:24:10.064702"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.066824"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.066824"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.100061"], ["name", "User13"], ["updated_at", "2014-04-11 21:24:10.100061"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.102001"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-11 21:24:10.102001"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.104163"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.104163"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.177633"], ["name", "User14"], ["updated_at", "2014-04-11 21:24:10.177633"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.179869"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-11 21:24:10.179869"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.182237"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.182237"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.208447"], ["name", "User15"], ["updated_at", "2014-04-11 21:24:10.208447"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.210497"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-11 21:24:10.210497"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.212687"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.212687"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.240729"], ["name", "User16"], ["updated_at", "2014-04-11 21:24:10.240729"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.242703"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-11 21:24:10.242703"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.244870"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.244870"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.266418"], ["name", "User17"], ["updated_at", "2014-04-11 21:24:10.266418"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.268608"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-11 21:24:10.268608"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.270827"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.270827"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.301297"], ["name", "User18"], ["updated_at", "2014-04-11 21:24:10.301297"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.303400"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-11 21:24:10.303400"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.305476"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.305476"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.319469"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-11 21:24:10.319469"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.329747"], ["name", "User19"], ["updated_at", "2014-04-11 21:24:10.329747"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.331977"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-11 21:24:10.331977"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.334564"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.334564"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.402346"], ["name", "User20"], ["updated_at", "2014-04-11 21:24:10.402346"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.404596"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-11 21:24:10.404596"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.406972"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.406972"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.439040"], ["name", "User21"], ["updated_at", "2014-04-11 21:24:10.439040"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.441079"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-11 21:24:10.441079"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.443924"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.443924"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.475910"], ["name", "User22"], ["updated_at", "2014-04-11 21:24:10.475910"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.477914"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-11 21:24:10.477914"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.484517"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.484517"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-11 21:24:10.498734"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.508603"], ["name", "User23"], ["updated_at", "2014-04-11 21:24:10.508603"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.510688"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-11 21:24:10.510688"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.512801"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.512801"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.541054"], ["name", "User24"], ["updated_at", "2014-04-11 21:24:10.541054"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.543045"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-11 21:24:10.543045"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.545186"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.545186"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.566668"], ["name", "User25"], ["updated_at", "2014-04-11 21:24:10.566668"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.568816"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-11 21:24:10.568816"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:10.571005"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.571005"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.601049"], ["name", "User26"], ["updated_at", "2014-04-11 21:24:10.601049"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.603135"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-11 21:24:10.603135"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (1.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.662319"], ["name", "User27"], ["updated_at", "2014-04-11 21:24:10.662319"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.664397"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-11 21:24:10.664397"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.678407"], ["name", "User28"], ["updated_at", "2014-04-11 21:24:10.678407"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.680413"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-11 21:24:10.680413"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.708070"], ["name", "User29"], ["updated_at", "2014-04-11 21:24:10.708070"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.710151"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-11 21:24:10.710151"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.733549"], ["name", "User30"], ["updated_at", "2014-04-11 21:24:10.733549"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.735781"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-11 21:24:10.735781"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.756816"], ["name", "User31"], ["updated_at", "2014-04-11 21:24:10.756816"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.759320"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-11 21:24:10.759320"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.774519"], ["name", "User32"], ["updated_at", "2014-04-11 21:24:10.774519"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.776706"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-11 21:24:10.776706"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.796953"], ["name", "User33"], ["updated_at", "2014-04-11 21:24:10.796953"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.799043"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-11 21:24:10.799043"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.812535"], ["name", "User34"], ["updated_at", "2014-04-11 21:24:10.812535"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.814652"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-11 21:24:10.814652"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:10.836187"], ["name", "User35"], ["updated_at", "2014-04-11 21:24:10.836187"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.838180"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-11 21:24:10.838180"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.6ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.894852"], ["name", "User36"], ["updated_at", "2014-04-11 21:24:10.894852"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.896872"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-11 21:24:10.896872"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.899000"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.899000"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.917836"], ["name", "User37"], ["updated_at", "2014-04-11 21:24:10.917836"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.919972"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-11 21:24:10.919972"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.922185"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.922185"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.939510"], ["name", "User38"], ["updated_at", "2014-04-11 21:24:10.939510"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.941806"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-11 21:24:10.941806"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.944135"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.944135"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.965220"], ["name", "User39"], ["updated_at", "2014-04-11 21:24:10.965220"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.967392"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-11 21:24:10.967392"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.969703"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:10.969703"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.975521"], ["name", "User40"], ["updated_at", "2014-04-11 21:24:10.975521"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.977704"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-11 21:24:10.977704"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:10.981382"], ["name", "User41"], ["updated_at", "2014-04-11 21:24:10.981382"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-11 21:24:10.983463"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-11 21:24:10.983463"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.6ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 98ms (Views: 93.5ms | ActiveRecord: 1.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.096022"], ["name", "User42"], ["updated_at", "2014-04-11 21:24:11.096022"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.098047"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-11 21:24:11.098047"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:11.100330"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.100330"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.105879"], ["name", "User43"], ["updated_at", "2014-04-11 21:24:11.105879"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.109098"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-11 21:24:11.109098"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.112498"], ["name", "User44"], ["updated_at", "2014-04-11 21:24:11.112498"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.114400"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-11 21:24:11.114400"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 18ms (Views: 14.1ms | ActiveRecord: 1.1ms)
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.147519"], ["name", "User45"], ["updated_at", "2014-04-11 21:24:11.147519"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.149601"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-11 21:24:11.149601"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.151765"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.151765"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.157695"], ["name", "User46"], ["updated_at", "2014-04-11 21:24:11.157695"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.159662"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-11 21:24:11.159662"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:24:11.162618"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.183790"], ["name", "User47"], ["updated_at", "2014-04-11 21:24:11.183790"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.185907"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-11 21:24:11.185907"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.188262"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.188262"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.193871"], ["name", "User48"], ["updated_at", "2014-04-11 21:24:11.193871"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.195960"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-11 21:24:11.195960"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-11 21:24:11.202262"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (1.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.267128"], ["name", "User49"], ["updated_at", "2014-04-11 21:24:11.267128"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.269329"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-11 21:24:11.269329"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.271565"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.271565"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-11 21:24:11.276863"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-11 21:24:11.280546"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.314700"], ["name", "User50"], ["updated_at", "2014-04-11 21:24:11.314700"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.316671"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-11 21:24:11.316671"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.318762"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.318762"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.333986"], ["name", "User51"], ["updated_at", "2014-04-11 21:24:11.333986"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.336105"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-11 21:24:11.336105"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:11.338269"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.338269"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:11.391487"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.391487"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.436890"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.436890"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.521194"], ["name", "User52"], ["updated_at", "2014-04-11 21:24:11.521194"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.523288"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-11 21:24:11.523288"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-11 21:24:11.525688"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.525688"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.538316"], ["name", "User53"], ["updated_at", "2014-04-11 21:24:11.538316"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-11 21:24:11.540391"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-11 21:24:11.540391"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.542611"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-11 21:24:11.542611"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-11 23:24:11 +0200
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.554105"], ["name", "User54"], ["updated_at", "2014-04-11 21:24:11.554105"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-11 21:24:11.557472"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:24:11.555372"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:24:11.557472"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-11 21:24:11.584916"], ["name", "User55"], ["updated_at", "2014-04-11 21:24:11.584916"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:24:11.587584"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:24:11.585772"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:24:11.587584"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-11 21:24:11.597842"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-11 21:24:11.612313"], ["name", "User56"], ["updated_at", "2014-04-11 21:24:11.612313"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-11 21:24:11.615290"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-11 21:24:11.613420"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-11 21:24:11.615290"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-11 21:24:11.626771"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:46.742175"], ["name", "User1"], ["updated_at", "2014-04-12 20:39:46.742175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1"], ["body_filtered", "Site Long Text 1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:39:46.766776"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:39:46.766776"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:46.780202"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:46.780202"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:39:46 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:46.985253"], ["name", "Admin"], ["updated_at", "2014-04-12 20:39:46.985253"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:39:46.987291"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:39:46.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:39:46.987291"], ["user_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:46.999407"], ["name", "User2"], ["updated_at", "2014-04-12 20:39:46.999407"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 2"], ["body_filtered", "Site Long Text 2"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:39:47.001713"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:39:47.001713"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:47.005321"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:47.005321"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 46ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:47.073964"], ["name", "User3"], ["updated_at", "2014-04-12 20:39:47.073964"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3"], ["body_filtered", "Site Long Text 3"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:39:47.076166"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:39:47.076166"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:47.079656"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:47.079656"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (90.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.5ms)
Completed 200 OK in 1032ms (Views: 1030.0ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.134213"], ["name", "User4"], ["updated_at", "2014-04-12 20:39:48.134213"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 4"], ["body_filtered", "Site Long Text 4"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.136352"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:39:48.136352"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.139624"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.139624"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (44.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 52ms (Views: 49.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.212000"], ["name", "User5"], ["updated_at", "2014-04-12 20:39:48.212000"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5"], ["body_filtered", "Site Long Text 5"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.214085"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:39:48.214085"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.217593"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.217593"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:39:48.232382"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.242955"], ["name", "User6"], ["updated_at", "2014-04-12 20:39:48.242955"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 6"], ["body_filtered", "Site Long Text 6"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.245075"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:39:48.245075"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.248434"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.248434"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 27ms (Views: 24.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.295309"], ["name", "User7"], ["updated_at", "2014-04-12 20:39:48.295309"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7"], ["body_filtered", "Site Long Text 7"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.297421"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:39:48.297421"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.300724"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.300724"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.322984"], ["name", "User8"], ["updated_at", "2014-04-12 20:39:48.322984"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 8"], ["body_filtered", "Site Long Text 8"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.325108"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:39:48.325108"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.328423"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.328423"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (1.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 27ms (Views: 23.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (1.9ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 55ms (Views: 50.5ms | ActiveRecord: 2.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.578814"], ["name", "User9"], ["updated_at", "2014-04-12 20:39:48.578814"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9"], ["body_filtered", "Site Long Text 9"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.580936"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:39:48.580936"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.583171"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.583171"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.599486"], ["name", "User10"], ["updated_at", "2014-04-12 20:39:48.599486"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 10"], ["body_filtered", "Site Long Text 10"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.601604"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:39:48.601604"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.620086"], ["name", "User11"], ["updated_at", "2014-04-12 20:39:48.620086"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11"], ["body_filtered", "Site Long Text 11"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.622238"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:39:48.622238"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.624396"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.624396"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.648611"], ["name", "User12"], ["updated_at", "2014-04-12 20:39:48.648611"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 12"], ["body_filtered", "Site Long Text 12"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.650714"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:39:48.650714"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.652817"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.652817"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (15.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 40ms (Views: 37.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.714775"], ["name", "User13"], ["updated_at", "2014-04-12 20:39:48.714775"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13"], ["body_filtered", "Site Long Text 13"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.716948"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:39:48.716948"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.719110"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.719110"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.751243"], ["name", "User14"], ["updated_at", "2014-04-12 20:39:48.751243"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 14"], ["body_filtered", "Site Long Text 14"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.753285"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:39:48.753285"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.756258"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.756258"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.779320"], ["name", "User15"], ["updated_at", "2014-04-12 20:39:48.779320"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15"], ["body_filtered", "Site Long Text 15"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.781520"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:39:48.781520"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.783872"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.783872"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (1.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.861025"], ["name", "User16"], ["updated_at", "2014-04-12 20:39:48.861025"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 16"], ["body_filtered", "Site Long Text 16"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.863581"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:39:48.863581"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.866074"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.866074"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.889355"], ["name", "User17"], ["updated_at", "2014-04-12 20:39:48.889355"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17"], ["body_filtered", "Site Long Text 17"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.891573"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:39:48.891573"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.893927"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.893927"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.925927"], ["name", "User18"], ["updated_at", "2014-04-12 20:39:48.925927"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 18"], ["body_filtered", "Site Long Text 18"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.927985"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:39:48.927985"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.930084"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.930084"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.944359"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:39:48.944359"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:48.954972"], ["name", "User19"], ["updated_at", "2014-04-12 20:39:48.954972"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19"], ["body_filtered", "Site Long Text 19"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.957212"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:39:48.957212"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:48.959391"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.959391"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_menus" WHERE "odania_menus"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.982411"], ["name", "User20"], ["updated_at", "2014-04-12 20:39:48.982411"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 20"], ["body_filtered", "Site Long Text 20"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:39:48.984685"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:39:48.984685"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:48.987037"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:48.987037"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.020141"], ["name", "User21"], ["updated_at", "2014-04-12 20:39:49.020141"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21"], ["body_filtered", "Site Long Text 21"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.022394"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:39:49.022394"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.024632"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.024632"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 36ms (Views: 33.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.080390"], ["name", "User22"], ["updated_at", "2014-04-12 20:39:49.080390"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 22"], ["body_filtered", "Site Long Text 22"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.082668"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:39:49.082668"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:49.084892"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.084892"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:39:49.147502"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.156709"], ["name", "User23"], ["updated_at", "2014-04-12 20:39:49.156709"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23"], ["body_filtered", "Site Long Text 23"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.158956"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:39:49.158956"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:49.161340"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.161340"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.190775"], ["name", "User24"], ["updated_at", "2014-04-12 20:39:49.190775"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 24"], ["body_filtered", "Site Long Text 24"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.193023"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:39:49.193023"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:49.195406"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.195406"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.217699"], ["name", "User25"], ["updated_at", "2014-04-12 20:39:49.217699"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25"], ["body_filtered", "Site Long Text 25"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.219878"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:39:49.219878"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:49.222142"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.222142"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.253665"], ["name", "User26"], ["updated_at", "2014-04-12 20:39:49.253665"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 26"], ["body_filtered", "Site Long Text 26"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.255637"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:39:49.255637"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.273551"], ["name", "User27"], ["updated_at", "2014-04-12 20:39:49.273551"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27"], ["body_filtered", "Site Long Text 27"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.275908"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:39:49.275908"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.290346"], ["name", "User28"], ["updated_at", "2014-04-12 20:39:49.290346"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 28"], ["body_filtered", "Site Long Text 28"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.292512"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:39:49.292512"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (7.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 41ms (Views: 37.5ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.344727"], ["name", "User29"], ["updated_at", "2014-04-12 20:39:49.344727"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29"], ["body_filtered", "Site Long Text 29"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.347135"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:39:49.347135"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.373780"], ["name", "User30"], ["updated_at", "2014-04-12 20:39:49.373780"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 30"], ["body_filtered", "Site Long Text 30"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.376446"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:39:49.376446"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (56.2ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 64ms (Views: 61.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.453552"], ["name", "User31"], ["updated_at", "2014-04-12 20:39:49.453552"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31"], ["body_filtered", "Site Long Text 31"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.456143"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:39:49.456143"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1[0m [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.476623"], ["name", "User32"], ["updated_at", "2014-04-12 20:39:49.476623"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 32"], ["body_filtered", "Site Long Text 32"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.478892"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:39:49.478892"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.506302"], ["name", "User33"], ["updated_at", "2014-04-12 20:39:49.506302"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33"], ["body_filtered", "Site Long Text 33"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.508945"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:39:49.508945"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.5ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.528873"], ["name", "User34"], ["updated_at", "2014-04-12 20:39:49.528873"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 34"], ["body_filtered", "Site Long Text 34"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.531763"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:39:49.531763"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.575231"], ["name", "User35"], ["updated_at", "2014-04-12 20:39:49.575231"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35"], ["body_filtered", "Site Long Text 35"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.578243"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:39:49.578243"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.607533"], ["name", "User36"], ["updated_at", "2014-04-12 20:39:49.607533"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 36"], ["body_filtered", "Site Long Text 36"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.609805"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:39:49.609805"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.612209"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.612209"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.634081"], ["name", "User37"], ["updated_at", "2014-04-12 20:39:49.634081"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37"], ["body_filtered", "Site Long Text 37"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.636239"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:39:49.636239"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.638547"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.638547"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.655909"], ["name", "User38"], ["updated_at", "2014-04-12 20:39:49.655909"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 38"], ["body_filtered", "Site Long Text 38"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.658167"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:39:49.658167"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.660367"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.660367"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 15ms (Views: 13.0ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.693468"], ["name", "User39"], ["updated_at", "2014-04-12 20:39:49.693468"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39"], ["body_filtered", "Site Long Text 39"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.695475"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:39:49.695475"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.697611"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.697611"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.703110"], ["name", "User40"], ["updated_at", "2014-04-12 20:39:49.703110"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 40"], ["body_filtered", "Site Long Text 40"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.705055"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:39:49.705055"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.708212"], ["name", "User41"], ["updated_at", "2014-04-12 20:39:49.708212"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 41"], ["body_filtered", "Site Long Text 41"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.710017"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:39:49.710017"], ["user_id", 3], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 154ms (Views: 150.0ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.879943"], ["name", "User42"], ["updated_at", "2014-04-12 20:39:49.879943"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 42"], ["body_filtered", "Site Long Text 42"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.882278"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:39:49.882278"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:49.884590"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.884590"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.890203"], ["name", "User43"], ["updated_at", "2014-04-12 20:39:49.890203"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43"], ["body_filtered", "Site Long Text 43"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.892682"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:39:49.892682"], ["user_id", 2], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:49.896184"], ["name", "User44"], ["updated_at", "2014-04-12 20:39:49.896184"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44"], ["body_filtered", "Site Long Text 44"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.898185"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:39:49.898185"], ["user_id", 3], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103/2-site-43"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103/2-site-43' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (26.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (30.0ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 41ms (Views: 35.6ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.954011"], ["name", "User45"], ["updated_at", "2014-04-12 20:39:49.954011"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45"], ["body_filtered", "Site Long Text 45"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:39:49.956131"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:39:49.956131"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.958537"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:49.958537"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:49.964916"], ["name", "User46"], ["updated_at", "2014-04-12 20:39:49.964916"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46"], ["body_filtered", "Site Long Text 46"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.013262"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:39:50.013262"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:39:50.017146"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title104"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title104' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.0ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.039769"], ["name", "User47"], ["updated_at", "2014-04-12 20:39:50.039769"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47"], ["body_filtered", "Site Long Text 47"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.041928"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:39:50.041928"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.044184"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.044184"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.049771"], ["name", "User48"], ["updated_at", "2014-04-12 20:39:50.049771"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48"], ["body_filtered", "Site Long Text 48"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.051799"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:39:50.051799"], ["user_id", 2], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-12 20:39:50.058200"]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title105/title106"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/title106"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/title106' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.9ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.085378"], ["name", "User49"], ["updated_at", "2014-04-12 20:39:50.085378"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49"], ["body_filtered", "Site Long Text 49"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.087521"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:39:50.087521"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.089816"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.089816"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:39:50.095196"]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (1.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:39:50.098568"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 1]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 36ms (Views: 32.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.167001"], ["name", "User50"], ["updated_at", "2014-04-12 20:39:50.167001"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50"], ["body_filtered", "Site Long Text 50"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.169168"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:39:50.169168"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.171343"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.171343"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:50.186507"], ["name", "User51"], ["updated_at", "2014-04-12 20:39:50.186507"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51"], ["body_filtered", "Site Long Text 51"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.188602"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:39:50.188602"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:50.190831"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.190831"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:50.286980"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.286980"]]
[1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.397745"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.397745"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (18.8ms)
Completed 200 OK in 27ms (Views: 26.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:50.454727"], ["name", "User52"], ["updated_at", "2014-04-12 20:39:50.454727"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52"], ["body_filtered", "Site Long Text 52"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.456893"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:39:50.456893"], ["user_id", 1], ["views", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:39:50.459608"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.459608"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.472157"], ["name", "User53"], ["updated_at", "2014-04-12 20:39:50.472157"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53"], ["body_filtered", "Site Long Text 53"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:39:50.474362"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:39:50.474362"], ["user_id", 1], ["views", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.476613"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:39:50.476613"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:39:50 +0200
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:50.489321"], ["name", "User54"], ["updated_at", "2014-04-12 20:39:50.489321"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:39:50.493385"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:39:50.490763"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:39:50.493385"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:39:50.508389"], ["name", "User55"], ["updated_at", "2014-04-12 20:39:50.508389"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:39:50.511110"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:39:50.509339"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:39:50.511110"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:39:50.522715"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:39:50.536103"], ["name", "User56"], ["updated_at", "2014-04-12 20:39:50.536103"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:39:50.539005"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:39:50.537099"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:39:50.539005"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:39:50.552414"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:56.944244"], ["name", "User1"], ["updated_at", "2014-04-12 20:42:56.944244"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.034485"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:42:57.034485"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:57.097945"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.097945"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:42:57 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.120304"], ["name", "Admin"], ["updated_at", "2014-04-12 20:42:57.120304"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:42:57.122287"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:42:57.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:42:57.122287"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.133051"], ["name", "User2"], ["updated_at", "2014-04-12 20:42:57.133051"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.135088"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:42:57.135088"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.141353"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.141353"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.165420"], ["name", "User3"], ["updated_at", "2014-04-12 20:42:57.165420"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.167805"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:42:57.167805"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.174184"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.174184"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 131ms (Views: 128.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.323652"], ["name", "User4"], ["updated_at", "2014-04-12 20:42:57.323652"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.325957"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:42:57.325957"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.332074"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.332074"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.360802"], ["name", "User5"], ["updated_at", "2014-04-12 20:42:57.360802"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.363057"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:42:57.363057"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.369438"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.369438"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:42:57.383410"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.393517"], ["name", "User6"], ["updated_at", "2014-04-12 20:42:57.393517"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.395707"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:42:57.395707"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.402097"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.402097"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:57.429355"], ["name", "User7"], ["updated_at", "2014-04-12 20:42:57.429355"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.431724"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:42:57.431724"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:57.438643"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.438643"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:57.502732"], ["name", "User8"], ["updated_at", "2014-04-12 20:42:57.502732"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.505237"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:42:57.505237"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:57.511776"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.511776"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:57.671859"], ["name", "User9"], ["updated_at", "2014-04-12 20:42:57.671859"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.673908"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:42:57.673908"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.678988"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.678988"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.736279"], ["name", "User10"], ["updated_at", "2014-04-12 20:42:57.736279"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.738425"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:42:57.738425"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.761196"], ["name", "User11"], ["updated_at", "2014-04-12 20:42:57.761196"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.763688"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:42:57.763688"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:57.769148"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.769148"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:57.791563"], ["name", "User12"], ["updated_at", "2014-04-12 20:42:57.791563"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.793635"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:42:57.793635"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.798637"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.798637"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.832631"], ["name", "User13"], ["updated_at", "2014-04-12 20:42:57.832631"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.834793"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:42:57.834793"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:57.839882"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.839882"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:57.868108"], ["name", "User14"], ["updated_at", "2014-04-12 20:42:57.868108"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.870518"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:42:57.870518"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.876136"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.876136"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:57.899608"], ["name", "User15"], ["updated_at", "2014-04-12 20:42:57.899608"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.901977"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:42:57.901977"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.907402"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.907402"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:57.979490"], ["name", "User16"], ["updated_at", "2014-04-12 20:42:57.979490"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:42:57.981900"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:42:57.981900"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:57.990751"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:57.990751"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.014422"], ["name", "User17"], ["updated_at", "2014-04-12 20:42:58.014422"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.016794"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:42:58.016794"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.022105"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.022105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.050962"], ["name", "User18"], ["updated_at", "2014-04-12 20:42:58.050962"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.053160"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:42:58.053160"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.058225"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.058225"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.071627"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:42:58.071627"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.080994"], ["name", "User19"], ["updated_at", "2014-04-12 20:42:58.080994"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.083415"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:42:58.083415"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.088420"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.088420"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.110500"], ["name", "User20"], ["updated_at", "2014-04-12 20:42:58.110500"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.112957"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:42:58.112957"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.118100"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.118100"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.147233"], ["name", "User21"], ["updated_at", "2014-04-12 20:42:58.147233"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.149362"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:42:58.149362"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.154415"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.154415"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.228473"], ["name", "User22"], ["updated_at", "2014-04-12 20:42:58.228473"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.230622"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:42:58.230622"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.235807"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.235807"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:42:58.249274"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.259043"], ["name", "User23"], ["updated_at", "2014-04-12 20:42:58.259043"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.261389"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:42:58.261389"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.266667"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.266667"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.292795"], ["name", "User24"], ["updated_at", "2014-04-12 20:42:58.292795"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.294927"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:42:58.294927"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.299841"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.299841"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.322411"], ["name", "User25"], ["updated_at", "2014-04-12 20:42:58.322411"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.324857"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:42:58.324857"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.331302"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.331302"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.361801"], ["name", "User26"], ["updated_at", "2014-04-12 20:42:58.361801"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.364095"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:42:58.364095"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.384254"], ["name", "User27"], ["updated_at", "2014-04-12 20:42:58.384254"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.386794"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:42:58.386794"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.405036"], ["name", "User28"], ["updated_at", "2014-04-12 20:42:58.405036"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.407485"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:42:58.407485"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.5ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.484138"], ["name", "User29"], ["updated_at", "2014-04-12 20:42:58.484138"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.486245"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:42:58.486245"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.510952"], ["name", "User30"], ["updated_at", "2014-04-12 20:42:58.510952"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.513338"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:42:58.513338"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.536662"], ["name", "User31"], ["updated_at", "2014-04-12 20:42:58.536662"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.539027"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:42:58.539027"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.556466"], ["name", "User32"], ["updated_at", "2014-04-12 20:42:58.556466"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.561321"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:42:58.561321"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.584191"], ["name", "User33"], ["updated_at", "2014-04-12 20:42:58.584191"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.586464"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:42:58.586464"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.601863"], ["name", "User34"], ["updated_at", "2014-04-12 20:42:58.601863"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.604039"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:42:58.604039"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.628168"], ["name", "User35"], ["updated_at", "2014-04-12 20:42:58.628168"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.630449"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:42:58.630449"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.647608"], ["name", "User36"], ["updated_at", "2014-04-12 20:42:58.647608"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.649750"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:42:58.649750"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.654859"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.654859"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.719423"], ["name", "User37"], ["updated_at", "2014-04-12 20:42:58.719423"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.721851"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:42:58.721851"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.727175"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.727175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.742790"], ["name", "User38"], ["updated_at", "2014-04-12 20:42:58.742790"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.745329"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:42:58.745329"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.750963"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.750963"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.771548"], ["name", "User39"], ["updated_at", "2014-04-12 20:42:58.771548"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.773721"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:42:58.773721"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.778768"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.778768"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.784103"], ["name", "User40"], ["updated_at", "2014-04-12 20:42:58.784103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.786236"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:42:58.786236"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.793367"], ["name", "User41"], ["updated_at", "2014-04-12 20:42:58.793367"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.795735"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:42:58.795735"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.2ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 71ms (Views: 67.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.883765"], ["name", "User42"], ["updated_at", "2014-04-12 20:42:58.883765"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.886228"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:42:58.886228"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:58.891456"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.891456"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.896873"], ["name", "User43"], ["updated_at", "2014-04-12 20:42:58.896873"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.898917"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:42:58.898917"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.904740"], ["name", "User44"], ["updated_at", "2014-04-12 20:42:58.904740"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.906920"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:42:58.906920"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.926418"], ["name", "User45"], ["updated_at", "2014-04-12 20:42:58.926418"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.928866"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:42:58.928866"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.934044"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.934044"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.939414"], ["name", "User46"], ["updated_at", "2014-04-12 20:42:58.939414"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.941531"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:42:58.941531"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.947915"], ["name", "User47"], ["updated_at", "2014-04-12 20:42:58.947915"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.950006"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:42:58.950006"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (5.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (7.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 17ms (Views: 12.2ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:58.982530"], ["name", "User48"], ["updated_at", "2014-04-12 20:42:58.982530"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.984923"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:42:58.984923"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.990014"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:58.990014"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:58.995157"], ["name", "User49"], ["updated_at", "2014-04-12 20:42:58.995157"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:42:58.997289"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:42:58.997289"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.003026"], ["name", "User50"], ["updated_at", "2014-04-12 20:42:59.003026"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.005110"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:42:59.005110"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Completed 404 Not Found in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:59.025908"], ["name", "User51"], ["updated_at", "2014-04-12 20:42:59.025908"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.028231"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:42:59.028231"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.6ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.077711"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.077711"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.083225"], ["name", "User52"], ["updated_at", "2014-04-12 20:42:59.083225"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.085614"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:42:59.085614"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:42:59.092139"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.115525"], ["name", "User53"], ["updated_at", "2014-04-12 20:42:59.115525"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.117800"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:42:59.117800"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:59.123453"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.123453"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:59.129168"], ["name", "User54"], ["updated_at", "2014-04-12 20:42:59.129168"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.131373"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:42:59.131373"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:42:59.139998"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.4ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:59.166899"], ["name", "User55"], ["updated_at", "2014-04-12 20:42:59.166899"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.169327"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:42:59.169327"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.175489"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.175489"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:42:59.181291"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:42:59.186856"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.214407"], ["name", "User56"], ["updated_at", "2014-04-12 20:42:59.214407"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.216663"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:42:59.216663"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:59.222044"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.222044"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.236896"], ["name", "User57"], ["updated_at", "2014-04-12 20:42:59.236896"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.239048"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:42:59.239048"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:59.244260"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.244260"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.341079"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.341079"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:59.386643"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.386643"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.422970"], ["name", "User58"], ["updated_at", "2014-04-12 20:42:59.422970"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.425389"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:42:59.425389"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:59.431198"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.431198"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.443493"], ["name", "User59"], ["updated_at", "2014-04-12 20:42:59.443493"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:42:59.445581"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:42:59.445581"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:42:59.450428"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:42:59.450428"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:42:59 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.461476"], ["name", "User60"], ["updated_at", "2014-04-12 20:42:59.461476"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:42:59.465329"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:42:59.462861"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:42:59.465329"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:42:59.479698"], ["name", "User61"], ["updated_at", "2014-04-12 20:42:59.479698"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:42:59.482270"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:42:59.480590"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:42:59.482270"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:42:59.492296"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:42:59.504488"], ["name", "User62"], ["updated_at", "2014-04-12 20:42:59.504488"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:42:59.507255"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:42:59.505491"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:42:59.507255"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (5.3ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:42:59.570448"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:08.778823"], ["name", "User1"], ["updated_at", "2014-04-12 20:45:08.778823"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:45:08.868273"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:45:08.868273"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:08.933349"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:08.933349"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:45:08 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:08.957277"], ["name", "Admin"], ["updated_at", "2014-04-12 20:45:08.957277"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:45:08.959097"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:45:08.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:45:08.959097"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:08.969584"], ["name", "User2"], ["updated_at", "2014-04-12 20:45:08.969584"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:45:08.971709"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:45:08.971709"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:08.977879"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:08.977879"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.003237"], ["name", "User3"], ["updated_at", "2014-04-12 20:45:09.003237"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.005342"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:45:09.005342"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.011575"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.011575"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 134ms (Views: 132.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.167207"], ["name", "User4"], ["updated_at", "2014-04-12 20:45:09.167207"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.169478"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:45:09.169478"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.176105"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.176105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.205126"], ["name", "User5"], ["updated_at", "2014-04-12 20:45:09.205126"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.207234"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:45:09.207234"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.213119"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.213119"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:45:09.227228"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.236866"], ["name", "User6"], ["updated_at", "2014-04-12 20:45:09.236866"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.239183"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:45:09.239183"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.246076"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.246076"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.273303"], ["name", "User7"], ["updated_at", "2014-04-12 20:45:09.273303"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.275886"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:45:09.275886"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.282462"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.282462"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.7ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.343870"], ["name", "User8"], ["updated_at", "2014-04-12 20:45:09.343870"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.346060"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:45:09.346060"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.352241"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.352241"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.495621"], ["name", "User9"], ["updated_at", "2014-04-12 20:45:09.495621"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.497761"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:45:09.497761"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.502798"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.502798"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (2.9ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.562647"], ["name", "User10"], ["updated_at", "2014-04-12 20:45:09.562647"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.564920"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:45:09.564920"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.588168"], ["name", "User11"], ["updated_at", "2014-04-12 20:45:09.588168"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.590699"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:45:09.590699"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.596054"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.596054"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.618377"], ["name", "User12"], ["updated_at", "2014-04-12 20:45:09.618377"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.620654"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:45:09.620654"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.625836"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.625836"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.658105"], ["name", "User13"], ["updated_at", "2014-04-12 20:45:09.658105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.660352"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:45:09.660352"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.665977"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.665977"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.694495"], ["name", "User14"], ["updated_at", "2014-04-12 20:45:09.694495"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.696784"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:45:09.696784"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.701920"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.701920"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.725818"], ["name", "User15"], ["updated_at", "2014-04-12 20:45:09.725818"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.727883"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:45:09.727883"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.732911"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.732911"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.802921"], ["name", "User16"], ["updated_at", "2014-04-12 20:45:09.802921"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.805085"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:45:09.805085"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.809943"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.809943"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.830319"], ["name", "User17"], ["updated_at", "2014-04-12 20:45:09.830319"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.832461"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:45:09.832461"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.837559"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.837559"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.866595"], ["name", "User18"], ["updated_at", "2014-04-12 20:45:09.866595"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.868709"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:45:09.868709"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.873629"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.873629"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.888132"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:45:09.888132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.897734"], ["name", "User19"], ["updated_at", "2014-04-12 20:45:09.897734"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.899895"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:45:09.899895"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.905105"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.905105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:09.926371"], ["name", "User20"], ["updated_at", "2014-04-12 20:45:09.926371"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.928497"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:45:09.928497"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.933513"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.933513"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:09.964888"], ["name", "User21"], ["updated_at", "2014-04-12 20:45:09.964888"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:45:09.967077"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:45:09.967077"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:09.972028"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:09.972028"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.050847"], ["name", "User22"], ["updated_at", "2014-04-12 20:45:10.050847"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.053171"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:45:10.053171"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:10.058811"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.058811"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:45:10.073337"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.083576"], ["name", "User23"], ["updated_at", "2014-04-12 20:45:10.083576"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.086049"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:45:10.086049"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.091487"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.091487"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.118106"], ["name", "User24"], ["updated_at", "2014-04-12 20:45:10.118106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.120389"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:45:10.120389"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:10.125713"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.125713"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.146059"], ["name", "User25"], ["updated_at", "2014-04-12 20:45:10.146059"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.148222"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:45:10.148222"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.153273"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.153273"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.182196"], ["name", "User26"], ["updated_at", "2014-04-12 20:45:10.182196"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.184482"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:45:10.184482"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.203733"], ["name", "User27"], ["updated_at", "2014-04-12 20:45:10.203733"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.205902"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:45:10.205902"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.222455"], ["name", "User28"], ["updated_at", "2014-04-12 20:45:10.222455"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.225057"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:45:10.225057"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (7.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.300570"], ["name", "User29"], ["updated_at", "2014-04-12 20:45:10.300570"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.302753"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:45:10.302753"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.328485"], ["name", "User30"], ["updated_at", "2014-04-12 20:45:10.328485"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.330582"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:45:10.330582"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.354227"], ["name", "User31"], ["updated_at", "2014-04-12 20:45:10.354227"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.356392"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:45:10.356392"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.373260"], ["name", "User32"], ["updated_at", "2014-04-12 20:45:10.373260"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.375612"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:45:10.375612"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.398655"], ["name", "User33"], ["updated_at", "2014-04-12 20:45:10.398655"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.400904"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:45:10.400904"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.416269"], ["name", "User34"], ["updated_at", "2014-04-12 20:45:10.416269"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.418341"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:45:10.418341"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.441205"], ["name", "User35"], ["updated_at", "2014-04-12 20:45:10.441205"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.443371"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:45:10.443371"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.459788"], ["name", "User36"], ["updated_at", "2014-04-12 20:45:10.459788"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.462044"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:45:10.462044"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.467420"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.467420"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.534215"], ["name", "User37"], ["updated_at", "2014-04-12 20:45:10.534215"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.536701"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:45:10.536701"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:10.541765"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.541765"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.558483"], ["name", "User38"], ["updated_at", "2014-04-12 20:45:10.558483"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.561373"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:45:10.561373"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.567287"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.567287"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.587144"], ["name", "User39"], ["updated_at", "2014-04-12 20:45:10.587144"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.589336"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:45:10.589336"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:10.594512"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.594512"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.600079"], ["name", "User40"], ["updated_at", "2014-04-12 20:45:10.600079"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.602207"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:45:10.602207"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.608002"], ["name", "User41"], ["updated_at", "2014-04-12 20:45:10.608002"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.610004"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:45:10.610004"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.625124"], ["name", "User42"], ["updated_at", "2014-04-12 20:45:10.625124"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.627571"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:45:10.627571"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:10.633227"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.633227"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.638786"], ["name", "User43"], ["updated_at", "2014-04-12 20:45:10.638786"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.641033"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:45:10.641033"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.647217"], ["name", "User44"], ["updated_at", "2014-04-12 20:45:10.647217"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.649209"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:45:10.649209"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Completed 404 Not Found in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.669119"], ["name", "User45"], ["updated_at", "2014-04-12 20:45:10.669119"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.671341"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:45:10.671341"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.676658"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.676658"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.681949"], ["name", "User46"], ["updated_at", "2014-04-12 20:45:10.681949"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.684007"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:45:10.684007"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.689791"], ["name", "User47"], ["updated_at", "2014-04-12 20:45:10.689791"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.691746"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:45:10.691746"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.706179"], ["name", "User48"], ["updated_at", "2014-04-12 20:45:10.706179"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.708454"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:45:10.708454"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.713656"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.713656"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.719069"], ["name", "User49"], ["updated_at", "2014-04-12 20:45:10.719069"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.721318"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:45:10.721318"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.727233"], ["name", "User50"], ["updated_at", "2014-04-12 20:45:10.727233"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.729319"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:45:10.729319"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Completed 404 Not Found in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.9ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.797098"], ["name", "User51"], ["updated_at", "2014-04-12 20:45:10.797098"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.799527"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:45:10.799527"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.805547"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.805547"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.810931"], ["name", "User52"], ["updated_at", "2014-04-12 20:45:10.810931"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.812999"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:45:10.812999"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:45:10.818622"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (5.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (7.5ms)
[1m[35mOdania::MenuItem Load (1.8ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (44.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (46.1ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 77ms (Views: 71.2ms | ActiveRecord: 2.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.911253"], ["name", "User53"], ["updated_at", "2014-04-12 20:45:10.911253"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.913802"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:45:10.913802"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:10.919582"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.919582"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.926194"], ["name", "User54"], ["updated_at", "2014-04-12 20:45:10.926194"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.928555"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:45:10.928555"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:45:10.938248"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:10.969169"], ["name", "User55"], ["updated_at", "2014-04-12 20:45:10.969169"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:45:10.971779"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:45:10.971779"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:10.977600"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:10.977600"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:45:10.983380"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:45:10.989417"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.3ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.019485"], ["name", "User56"], ["updated_at", "2014-04-12 20:45:11.019485"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:45:11.021868"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:45:11.021868"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:11.027415"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:11.027415"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.041746"], ["name", "User57"], ["updated_at", "2014-04-12 20:45:11.041746"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:45:11.043902"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:45:11.043902"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:11.048929"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:11.048929"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.144064"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:11.144064"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (1.5ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:11.193737"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:11.193737"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.231939"], ["name", "User58"], ["updated_at", "2014-04-12 20:45:11.231939"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:45:11.234782"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:45:11.234782"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:11.240033"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:11.240033"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.252989"], ["name", "User59"], ["updated_at", "2014-04-12 20:45:11.252989"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:45:11.255998"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:45:11.255998"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:11.261739"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:11.261739"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:45:11 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.272838"], ["name", "User60"], ["updated_at", "2014-04-12 20:45:11.272838"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:45:11.276195"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:45:11.274062"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:45:11.276195"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:11.291619"], ["name", "User61"], ["updated_at", "2014-04-12 20:45:11.291619"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:45:11.294248"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:45:11.292505"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:45:11.294248"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:45:11.304224"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:11.316992"], ["name", "User62"], ["updated_at", "2014-04-12 20:45:11.316992"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:45:11.319555"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:45:11.317880"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:45:11.319555"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:45:11.331636"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.5ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:20.919885"], ["name", "User1"], ["updated_at", "2014-04-12 20:45:20.919885"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.008943"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:45:21.008943"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:21.074945"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.074945"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:45:21 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.097869"], ["name", "Admin"], ["updated_at", "2014-04-12 20:45:21.097869"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:45:21.099733"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:45:21.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:45:21.099733"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (1.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.112073"], ["name", "User2"], ["updated_at", "2014-04-12 20:45:21.112073"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.114170"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:45:21.114170"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.120768"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.120768"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.149077"], ["name", "User3"], ["updated_at", "2014-04-12 20:45:21.149077"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.152057"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:45:21.152057"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.159521"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.159521"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (11.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 135ms (Views: 132.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.314629"], ["name", "User4"], ["updated_at", "2014-04-12 20:45:21.314629"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.317628"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:45:21.317628"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.323826"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.323826"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.352303"], ["name", "User5"], ["updated_at", "2014-04-12 20:45:21.352303"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.354345"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:45:21.354345"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.360289"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.360289"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:45:21.373503"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.383961"], ["name", "User6"], ["updated_at", "2014-04-12 20:45:21.383961"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.386113"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:45:21.386113"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.392152"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.392152"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:21.421711"], ["name", "User7"], ["updated_at", "2014-04-12 20:45:21.421711"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.423903"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:45:21.423903"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:21.430048"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.430048"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (2.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:21.498489"], ["name", "User8"], ["updated_at", "2014-04-12 20:45:21.498489"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.500935"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:45:21.500935"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:21.507624"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.507624"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:21.660821"], ["name", "User9"], ["updated_at", "2014-04-12 20:45:21.660821"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.663481"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:45:21.663481"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.670001"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.670001"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.728778"], ["name", "User10"], ["updated_at", "2014-04-12 20:45:21.728778"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.731222"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:45:21.731222"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.756523"], ["name", "User11"], ["updated_at", "2014-04-12 20:45:21.756523"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.758848"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:45:21.758848"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:21.764019"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.764019"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:21.786613"], ["name", "User12"], ["updated_at", "2014-04-12 20:45:21.786613"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.788910"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:45:21.788910"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.793909"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.793909"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.827319"], ["name", "User13"], ["updated_at", "2014-04-12 20:45:21.827319"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.830565"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:45:21.830565"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:21.835573"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.835573"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:21.865531"], ["name", "User14"], ["updated_at", "2014-04-12 20:45:21.865531"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.867544"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:45:21.867544"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.872282"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.872282"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:21.896091"], ["name", "User15"], ["updated_at", "2014-04-12 20:45:21.896091"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.898152"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:45:21.898152"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.903156"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.903156"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:21.974380"], ["name", "User16"], ["updated_at", "2014-04-12 20:45:21.974380"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:45:21.976423"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:45:21.976423"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:21.981422"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:21.981422"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.003756"], ["name", "User17"], ["updated_at", "2014-04-12 20:45:22.003756"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.006143"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:45:22.006143"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.011283"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.011283"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.043555"], ["name", "User18"], ["updated_at", "2014-04-12 20:45:22.043555"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.045793"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:45:22.045793"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.050769"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.050769"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.068166"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:45:22.068166"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.079023"], ["name", "User19"], ["updated_at", "2014-04-12 20:45:22.079023"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.081241"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:45:22.081241"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.087365"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.087365"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.110919"], ["name", "User20"], ["updated_at", "2014-04-12 20:45:22.110919"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.113180"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:45:22.113180"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.119965"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.119965"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.152544"], ["name", "User21"], ["updated_at", "2014-04-12 20:45:22.152544"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.154714"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:45:22.154714"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.159628"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.159628"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.232866"], ["name", "User22"], ["updated_at", "2014-04-12 20:45:22.232866"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.234895"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:45:22.234895"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.239786"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.239786"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:45:22.253711"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.263798"], ["name", "User23"], ["updated_at", "2014-04-12 20:45:22.263798"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.265997"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:45:22.265997"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.270989"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.270989"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.298082"], ["name", "User24"], ["updated_at", "2014-04-12 20:45:22.298082"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.300112"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:45:22.300112"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.305096"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.305096"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.327774"], ["name", "User25"], ["updated_at", "2014-04-12 20:45:22.327774"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.330010"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:45:22.330010"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.335011"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.335011"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.365051"], ["name", "User26"], ["updated_at", "2014-04-12 20:45:22.365051"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.367167"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:45:22.367167"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.385966"], ["name", "User27"], ["updated_at", "2014-04-12 20:45:22.385966"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.388173"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:45:22.388173"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.406578"], ["name", "User28"], ["updated_at", "2014-04-12 20:45:22.406578"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.408730"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:45:22.408730"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.482950"], ["name", "User29"], ["updated_at", "2014-04-12 20:45:22.482950"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.485202"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:45:22.485202"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.511469"], ["name", "User30"], ["updated_at", "2014-04-12 20:45:22.511469"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.513758"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:45:22.513758"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.538196"], ["name", "User31"], ["updated_at", "2014-04-12 20:45:22.538196"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.540218"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:45:22.540218"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.558547"], ["name", "User32"], ["updated_at", "2014-04-12 20:45:22.558547"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.561526"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:45:22.561526"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.584675"], ["name", "User33"], ["updated_at", "2014-04-12 20:45:22.584675"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.587033"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:45:22.587033"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.603455"], ["name", "User34"], ["updated_at", "2014-04-12 20:45:22.603455"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.605962"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:45:22.605962"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.631245"], ["name", "User35"], ["updated_at", "2014-04-12 20:45:22.631245"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.633393"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:45:22.633393"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.649802"], ["name", "User36"], ["updated_at", "2014-04-12 20:45:22.649802"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.652159"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:45:22.652159"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.658206"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.658206"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.721953"], ["name", "User37"], ["updated_at", "2014-04-12 20:45:22.721953"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.725728"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:45:22.725728"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.731175"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.731175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.746516"], ["name", "User38"], ["updated_at", "2014-04-12 20:45:22.746516"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.748633"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:45:22.748633"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.753547"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.753547"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.774344"], ["name", "User39"], ["updated_at", "2014-04-12 20:45:22.774344"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.776410"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:45:22.776410"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.781379"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.781379"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.787326"], ["name", "User40"], ["updated_at", "2014-04-12 20:45:22.787326"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.790327"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:45:22.790327"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.796059"], ["name", "User41"], ["updated_at", "2014-04-12 20:45:22.796059"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.798071"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:45:22.798071"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 72ms (Views: 68.5ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.887895"], ["name", "User42"], ["updated_at", "2014-04-12 20:45:22.887895"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.890011"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:45:22.890011"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.895047"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.895047"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.900275"], ["name", "User43"], ["updated_at", "2014-04-12 20:45:22.900275"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.902479"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:45:22.902479"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.908459"], ["name", "User44"], ["updated_at", "2014-04-12 20:45:22.908459"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.910471"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:45:22.910471"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (15.1ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (16.4ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 20.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:22.952760"], ["name", "User45"], ["updated_at", "2014-04-12 20:45:22.952760"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.954783"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:45:22.954783"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:22.959680"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:22.959680"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.965388"], ["name", "User46"], ["updated_at", "2014-04-12 20:45:22.965388"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.967357"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:45:22.967357"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:22.973915"], ["name", "User47"], ["updated_at", "2014-04-12 20:45:22.973915"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:45:22.976278"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:45:22.976278"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (5.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (7.9ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.014441"], ["name", "User48"], ["updated_at", "2014-04-12 20:45:23.014441"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.016618"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:45:23.016618"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:23.022007"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.022007"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.028705"], ["name", "User49"], ["updated_at", "2014-04-12 20:45:23.028705"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.031163"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:45:23.031163"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.037577"], ["name", "User50"], ["updated_at", "2014-04-12 20:45:23.037577"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.039701"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:45:23.039701"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (45.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (45.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 55ms (Views: 51.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.114876"], ["name", "User51"], ["updated_at", "2014-04-12 20:45:23.114876"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.117045"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:45:23.117045"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:23.122186"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.122186"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.127595"], ["name", "User52"], ["updated_at", "2014-04-12 20:45:23.127595"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.129953"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:45:23.129953"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:45:23.135746"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.158587"], ["name", "User53"], ["updated_at", "2014-04-12 20:45:23.158587"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.160643"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:45:23.160643"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.165788"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.165788"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.171145"], ["name", "User54"], ["updated_at", "2014-04-12 20:45:23.171145"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.174132"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:45:23.174132"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-12 20:45:23.182268"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.208161"], ["name", "User55"], ["updated_at", "2014-04-12 20:45:23.208161"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.210207"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:45:23.210207"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:23.215271"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.215271"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:45:23.220228"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:45:23.225392"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 2]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.253717"], ["name", "User56"], ["updated_at", "2014-04-12 20:45:23.253717"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.255833"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:45:23.255833"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.261484"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.261484"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.277462"], ["name", "User57"], ["updated_at", "2014-04-12 20:45:23.277462"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.279735"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:45:23.279735"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.285461"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.285461"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:45:23.384878"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.384878"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.433196"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.433196"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.472353"], ["name", "User58"], ["updated_at", "2014-04-12 20:45:23.472353"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.475244"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:45:23.475244"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.480464"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.480464"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.493908"], ["name", "User59"], ["updated_at", "2014-04-12 20:45:23.493908"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:45:23.496650"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:45:23.496650"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.502006"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:45:23.502006"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:45:23 +0200
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.513338"], ["name", "User60"], ["updated_at", "2014-04-12 20:45:23.513338"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:45:23.517031"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:45:23.514736"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:45:23.517031"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:45:23.534694"], ["name", "User61"], ["updated_at", "2014-04-12 20:45:23.534694"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:45:23.537626"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:45:23.535706"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:45:23.537626"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:45:23.548536"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:45:23.610713"], ["name", "User62"], ["updated_at", "2014-04-12 20:45:23.610713"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:45:23.613517"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:45:23.611621"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:45:23.613517"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:45:23.625823"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:46.995082"], ["name", "User1"], ["updated_at", "2014-04-12 20:46:46.995082"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.083735"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:46:47.083735"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:47.147879"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.147879"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:46:47 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.171822"], ["name", "Admin"], ["updated_at", "2014-04-12 20:46:47.171822"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:46:47.173838"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:46:47.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:46:47.173838"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.185787"], ["name", "User2"], ["updated_at", "2014-04-12 20:46:47.185787"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.188061"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:46:47.188061"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.194475"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.194475"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.218988"], ["name", "User3"], ["updated_at", "2014-04-12 20:46:47.218988"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.221299"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:46:47.221299"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.227505"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.227505"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 131ms (Views: 128.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.377496"], ["name", "User4"], ["updated_at", "2014-04-12 20:46:47.377496"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.379699"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:46:47.379699"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.386357"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.386357"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.414519"], ["name", "User5"], ["updated_at", "2014-04-12 20:46:47.414519"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.416583"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:46:47.416583"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.422615"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.422615"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:46:47.435826"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.445460"], ["name", "User6"], ["updated_at", "2014-04-12 20:46:47.445460"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.447762"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:46:47.447762"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.454091"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.454091"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:47.480637"], ["name", "User7"], ["updated_at", "2014-04-12 20:46:47.480637"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.482965"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:46:47.482965"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:47.489351"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.489351"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.8ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:47.553408"], ["name", "User8"], ["updated_at", "2014-04-12 20:46:47.553408"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.555724"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:46:47.555724"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:47.565090"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.565090"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:47.703971"], ["name", "User9"], ["updated_at", "2014-04-12 20:46:47.703971"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.706134"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:46:47.706134"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.711085"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.711085"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.768365"], ["name", "User10"], ["updated_at", "2014-04-12 20:46:47.768365"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.770658"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:46:47.770658"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.794393"], ["name", "User11"], ["updated_at", "2014-04-12 20:46:47.794393"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.796731"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:46:47.796731"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:47.801868"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.801868"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:47.824333"], ["name", "User12"], ["updated_at", "2014-04-12 20:46:47.824333"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.826481"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:46:47.826481"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.831381"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.831381"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.864451"], ["name", "User13"], ["updated_at", "2014-04-12 20:46:47.864451"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.866527"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:46:47.866527"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:47.871409"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.871409"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:47.899558"], ["name", "User14"], ["updated_at", "2014-04-12 20:46:47.899558"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.901796"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:46:47.901796"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.906870"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.906870"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:47.929678"], ["name", "User15"], ["updated_at", "2014-04-12 20:46:47.929678"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:46:47.931677"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:46:47.931677"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:47.936510"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:47.936510"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.008004"], ["name", "User16"], ["updated_at", "2014-04-12 20:46:48.008004"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.010242"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:46:48.010242"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.015785"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.015785"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.040037"], ["name", "User17"], ["updated_at", "2014-04-12 20:46:48.040037"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.042765"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:46:48.042765"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.049135"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.049135"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.080119"], ["name", "User18"], ["updated_at", "2014-04-12 20:46:48.080119"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.082250"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:46:48.082250"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.087150"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.087150"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.100205"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:46:48.100205"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.109849"], ["name", "User19"], ["updated_at", "2014-04-12 20:46:48.109849"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.111897"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:46:48.111897"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.116808"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.116808"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.137596"], ["name", "User20"], ["updated_at", "2014-04-12 20:46:48.137596"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.139859"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:46:48.139859"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.145305"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.145305"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.175300"], ["name", "User21"], ["updated_at", "2014-04-12 20:46:48.175300"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.177359"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:46:48.177359"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.182351"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.182351"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.254984"], ["name", "User22"], ["updated_at", "2014-04-12 20:46:48.254984"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.257193"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:46:48.257193"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.262753"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.262753"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:46:48.276234"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.286069"], ["name", "User23"], ["updated_at", "2014-04-12 20:46:48.286069"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.288220"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:46:48.288220"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.293536"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.293536"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.319082"], ["name", "User24"], ["updated_at", "2014-04-12 20:46:48.319082"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.321428"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:46:48.321428"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.326650"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.326650"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.346261"], ["name", "User25"], ["updated_at", "2014-04-12 20:46:48.346261"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.348466"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:46:48.348466"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.353388"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.353388"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.381378"], ["name", "User26"], ["updated_at", "2014-04-12 20:46:48.381378"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.383556"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:46:48.383556"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.401321"], ["name", "User27"], ["updated_at", "2014-04-12 20:46:48.401321"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.403478"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:46:48.403478"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.419862"], ["name", "User28"], ["updated_at", "2014-04-12 20:46:48.419862"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.422066"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:46:48.422066"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.497485"], ["name", "User29"], ["updated_at", "2014-04-12 20:46:48.497485"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.499718"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:46:48.499718"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.526619"], ["name", "User30"], ["updated_at", "2014-04-12 20:46:48.526619"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.528877"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:46:48.528877"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.552888"], ["name", "User31"], ["updated_at", "2014-04-12 20:46:48.552888"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.555106"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:46:48.555106"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.576581"], ["name", "User32"], ["updated_at", "2014-04-12 20:46:48.576581"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.578867"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:46:48.578867"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.600770"], ["name", "User33"], ["updated_at", "2014-04-12 20:46:48.600770"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.602831"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:46:48.602831"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.617895"], ["name", "User34"], ["updated_at", "2014-04-12 20:46:48.617895"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.620046"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:46:48.620046"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.642785"], ["name", "User35"], ["updated_at", "2014-04-12 20:46:48.642785"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.644860"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:46:48.644860"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.661271"], ["name", "User36"], ["updated_at", "2014-04-12 20:46:48.661271"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.663591"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:46:48.663591"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.669022"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.669022"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.733147"], ["name", "User37"], ["updated_at", "2014-04-12 20:46:48.733147"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.735660"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:46:48.735660"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.741242"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.741242"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.756410"], ["name", "User38"], ["updated_at", "2014-04-12 20:46:48.756410"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.758658"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:46:48.758658"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.763957"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.763957"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.784597"], ["name", "User39"], ["updated_at", "2014-04-12 20:46:48.784597"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.786652"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:46:48.786652"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.791577"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.791577"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.796629"], ["name", "User40"], ["updated_at", "2014-04-12 20:46:48.796629"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.798603"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:46:48.798603"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.804432"], ["name", "User41"], ["updated_at", "2014-04-12 20:46:48.804432"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.806606"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:46:48.806606"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.6ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 70ms (Views: 66.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.893046"], ["name", "User42"], ["updated_at", "2014-04-12 20:46:48.893046"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.895287"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:46:48.895287"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:48.900390"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.900390"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.905868"], ["name", "User43"], ["updated_at", "2014-04-12 20:46:48.905868"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.908021"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:46:48.908021"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.913770"], ["name", "User44"], ["updated_at", "2014-04-12 20:46:48.913770"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.915752"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:46:48.915752"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.0ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "tags"."name" = 'T1' ORDER BY created_at DESC [["site_id", 1]]
SQLite3::SQLException: no such column: tags.name: SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "tags"."name" = 'T1' ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (19.0ms)
Completed 500 Internal Server Error in 23ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:48.966775"], ["name", "User45"], ["updated_at", "2014-04-12 20:46:48.966775"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.969147"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:46:48.969147"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.974922"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:48.974922"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.980394"], ["name", "User46"], ["updated_at", "2014-04-12 20:46:48.980394"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.982522"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:46:48.982522"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:48.988491"], ["name", "User47"], ["updated_at", "2014-04-12 20:46:48.988491"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:46:48.990636"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:46:48.990636"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:49.022320"], ["name", "User48"], ["updated_at", "2014-04-12 20:46:49.022320"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.024774"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:46:49.024774"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.030135"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.030135"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.035779"], ["name", "User49"], ["updated_at", "2014-04-12 20:46:49.035779"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.037879"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:46:49.037879"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.043611"], ["name", "User50"], ["updated_at", "2014-04-12 20:46:49.043611"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.045621"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:46:49.045621"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (3.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 8.1ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:49.127616"], ["name", "User51"], ["updated_at", "2014-04-12 20:46:49.127616"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.130106"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:46:49.130106"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.135364"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.135364"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.140737"], ["name", "User52"], ["updated_at", "2014-04-12 20:46:49.140737"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.142815"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:46:49.142815"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:46:49.148531"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.170289"], ["name", "User53"], ["updated_at", "2014-04-12 20:46:49.170289"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.172394"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:46:49.172394"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:49.177406"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.177406"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:49.182675"], ["name", "User54"], ["updated_at", "2014-04-12 20:46:49.182675"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.184740"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:46:49.184740"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:46:49.192700"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:49.216657"], ["name", "User55"], ["updated_at", "2014-04-12 20:46:49.216657"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.218764"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:46:49.218764"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.223808"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.223808"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:46:49.228774"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:46:49.233479"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.259871"], ["name", "User56"], ["updated_at", "2014-04-12 20:46:49.259871"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.262185"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:46:49.262185"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:49.267384"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.267384"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.281284"], ["name", "User57"], ["updated_at", "2014-04-12 20:46:49.281284"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.283741"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:46:49.283741"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:49.288847"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.288847"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (44.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (45.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (47.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 54ms (Views: 52.4ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.388330"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.388330"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:49.432401"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.432401"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.468806"], ["name", "User58"], ["updated_at", "2014-04-12 20:46:49.468806"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.471064"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:46:49.471064"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:49.476475"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.476475"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.488495"], ["name", "User59"], ["updated_at", "2014-04-12 20:46:49.488495"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:46:49.490506"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:46:49.490506"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:46:49.495342"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:46:49.495342"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:46:49 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.505832"], ["name", "User60"], ["updated_at", "2014-04-12 20:46:49.505832"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:46:49.509465"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:46:49.507155"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:46:49.509465"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:46:49.523594"], ["name", "User61"], ["updated_at", "2014-04-12 20:46:49.523594"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:46:49.526235"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:46:49.524519"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:46:49.526235"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (47.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (3.5ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:46:49.589358"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:46:49.603395"], ["name", "User62"], ["updated_at", "2014-04-12 20:46:49.603395"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:46:49.606372"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:46:49.604458"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:46:49.606372"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:46:49.618180"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:13.802722"], ["name", "User1"], ["updated_at", "2014-04-12 20:49:13.802722"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:49:13.888122"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:49:13.888122"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:13.948083"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:13.948083"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:49:13 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:13.972954"], ["name", "Admin"], ["updated_at", "2014-04-12 20:49:13.972954"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:49:13.974940"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:49:13.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:49:13.974940"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:13.985944"], ["name", "User2"], ["updated_at", "2014-04-12 20:49:13.985944"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:49:13.988040"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:49:13.988040"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:13.994072"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:13.994072"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.019098"], ["name", "User3"], ["updated_at", "2014-04-12 20:49:14.019098"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.021541"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:49:14.021541"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.028092"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.028092"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 129ms (Views: 126.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.175766"], ["name", "User4"], ["updated_at", "2014-04-12 20:49:14.175766"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.177776"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:49:14.177776"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.184713"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.184713"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.213365"], ["name", "User5"], ["updated_at", "2014-04-12 20:49:14.213365"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.215709"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:49:14.215709"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.221913"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.221913"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:49:14.234968"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.244498"], ["name", "User6"], ["updated_at", "2014-04-12 20:49:14.244498"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.246669"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:49:14.246669"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.252910"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.252910"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.279870"], ["name", "User7"], ["updated_at", "2014-04-12 20:49:14.279870"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.282277"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:49:14.282277"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.288719"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.288719"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.8ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.349946"], ["name", "User8"], ["updated_at", "2014-04-12 20:49:14.349946"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.352072"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:49:14.352072"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.358214"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.358214"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.503915"], ["name", "User9"], ["updated_at", "2014-04-12 20:49:14.503915"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.506148"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:49:14.506148"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.511598"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.511598"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.576458"], ["name", "User10"], ["updated_at", "2014-04-12 20:49:14.576458"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.578665"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:49:14.578665"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.602341"], ["name", "User11"], ["updated_at", "2014-04-12 20:49:14.602341"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.604725"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:49:14.604725"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.610073"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.610073"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.633707"], ["name", "User12"], ["updated_at", "2014-04-12 20:49:14.633707"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.636173"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:49:14.636173"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.642190"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.642190"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.677979"], ["name", "User13"], ["updated_at", "2014-04-12 20:49:14.677979"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.680264"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:49:14.680264"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.685619"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.685619"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.716480"], ["name", "User14"], ["updated_at", "2014-04-12 20:49:14.716480"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.718762"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:49:14.718762"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.724360"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.724360"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.751465"], ["name", "User15"], ["updated_at", "2014-04-12 20:49:14.751465"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.753932"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:49:14.753932"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.759261"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.759261"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.830997"], ["name", "User16"], ["updated_at", "2014-04-12 20:49:14.830997"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.833037"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:49:14.833037"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.838021"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.838021"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.858402"], ["name", "User17"], ["updated_at", "2014-04-12 20:49:14.858402"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.860502"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:49:14.860502"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.865636"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.865636"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.894130"], ["name", "User18"], ["updated_at", "2014-04-12 20:49:14.894130"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.896179"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:49:14.896179"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.901174"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.901174"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.914506"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:49:14.914506"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.924153"], ["name", "User19"], ["updated_at", "2014-04-12 20:49:14.924153"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.926191"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:49:14.926191"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.931034"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.931034"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:14.953197"], ["name", "User20"], ["updated_at", "2014-04-12 20:49:14.953197"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.955607"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:49:14.955607"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.960924"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.960924"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:14.991126"], ["name", "User21"], ["updated_at", "2014-04-12 20:49:14.991126"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:49:14.993222"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:49:14.993222"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:14.998145"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:14.998145"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.071288"], ["name", "User22"], ["updated_at", "2014-04-12 20:49:15.071288"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.073415"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:49:15.073415"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.078363"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.078363"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:49:15.091518"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.101508"], ["name", "User23"], ["updated_at", "2014-04-12 20:49:15.101508"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.103821"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:49:15.103821"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.109436"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.109436"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.136528"], ["name", "User24"], ["updated_at", "2014-04-12 20:49:15.136528"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.138863"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:49:15.138863"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.144015"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.144015"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.164384"], ["name", "User25"], ["updated_at", "2014-04-12 20:49:15.164384"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.166722"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:49:15.166722"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.171806"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.171806"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.199525"], ["name", "User26"], ["updated_at", "2014-04-12 20:49:15.199525"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.201740"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:49:15.201740"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.219582"], ["name", "User27"], ["updated_at", "2014-04-12 20:49:15.219582"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.221958"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:49:15.221958"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 26ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (3.6ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.278649"], ["name", "User28"], ["updated_at", "2014-04-12 20:49:15.278649"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.284407"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:49:15.284407"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (10.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 28ms (Views: 15.3ms | ActiveRecord: 0.8ms)
[1m[35m (6.9ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (1.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.412956"], ["name", "User29"], ["updated_at", "2014-04-12 20:49:15.412956"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.415248"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:49:15.415248"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.444417"], ["name", "User30"], ["updated_at", "2014-04-12 20:49:15.444417"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.446896"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:49:15.446896"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.473118"], ["name", "User31"], ["updated_at", "2014-04-12 20:49:15.473118"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.475606"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:49:15.475606"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.496159"], ["name", "User32"], ["updated_at", "2014-04-12 20:49:15.496159"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.498854"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:49:15.498854"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.520538"], ["name", "User33"], ["updated_at", "2014-04-12 20:49:15.520538"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.523126"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:49:15.523126"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.538893"], ["name", "User34"], ["updated_at", "2014-04-12 20:49:15.538893"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.541195"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:49:15.541195"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.568200"], ["name", "User35"], ["updated_at", "2014-04-12 20:49:15.568200"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.570295"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:49:15.570295"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.586892"], ["name", "User36"], ["updated_at", "2014-04-12 20:49:15.586892"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.589108"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:49:15.589108"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.594145"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.594145"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.655870"], ["name", "User37"], ["updated_at", "2014-04-12 20:49:15.655870"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.658397"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:49:15.658397"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.664313"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.664313"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.679262"], ["name", "User38"], ["updated_at", "2014-04-12 20:49:15.679262"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.681504"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:49:15.681504"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.686606"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.686606"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.706066"], ["name", "User39"], ["updated_at", "2014-04-12 20:49:15.706066"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.708271"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:49:15.708271"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.713365"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.713365"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.718561"], ["name", "User40"], ["updated_at", "2014-04-12 20:49:15.718561"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.720521"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:49:15.720521"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.726720"], ["name", "User41"], ["updated_at", "2014-04-12 20:49:15.726720"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.728842"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:49:15.728842"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 70ms (Views: 66.0ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.814813"], ["name", "User42"], ["updated_at", "2014-04-12 20:49:15.814813"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.816864"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:49:15.816864"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.821923"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.821923"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.827369"], ["name", "User43"], ["updated_at", "2014-04-12 20:49:15.827369"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.829457"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:49:15.829457"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.835196"], ["name", "User44"], ["updated_at", "2014-04-12 20:49:15.835196"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.837277"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:49:15.837277"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.0ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "tags"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
SQLite3::SQLException: no such column: tags.id: SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "tags"."id" = 1 ORDER BY created_at DESC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.4ms)
Completed 500 Internal Server Error in 8ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.868667"], ["name", "User45"], ["updated_at", "2014-04-12 20:49:15.868667"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.870790"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:49:15.870790"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.875758"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.875758"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.880821"], ["name", "User46"], ["updated_at", "2014-04-12 20:49:15.880821"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.883073"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:49:15.883073"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.889021"], ["name", "User47"], ["updated_at", "2014-04-12 20:49:15.889021"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.891043"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:49:15.891043"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.3ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 11.2ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:15.922518"], ["name", "User48"], ["updated_at", "2014-04-12 20:49:15.922518"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.924913"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:49:15.924913"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:15.930013"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:15.930013"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.935249"], ["name", "User49"], ["updated_at", "2014-04-12 20:49:15.935249"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.937366"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:49:15.937366"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:15.943222"], ["name", "User50"], ["updated_at", "2014-04-12 20:49:15.943222"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:49:15.945367"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:49:15.945367"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (2.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 4ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:16.010197"], ["name", "User51"], ["updated_at", "2014-04-12 20:49:16.010197"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.012802"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:49:16.012802"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.018990"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.018990"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.025548"], ["name", "User52"], ["updated_at", "2014-04-12 20:49:16.025548"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.028005"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:49:16.028005"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:49:16.034101"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.056227"], ["name", "User53"], ["updated_at", "2014-04-12 20:49:16.056227"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.058365"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:49:16.058365"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:16.063330"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.063330"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:16.068725"], ["name", "User54"], ["updated_at", "2014-04-12 20:49:16.068725"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.070881"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:49:16.070881"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:49:16.078950"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:16.103542"], ["name", "User55"], ["updated_at", "2014-04-12 20:49:16.103542"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.105760"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:49:16.105760"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.110802"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.110802"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:49:16.115757"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:49:16.120243"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.147242"], ["name", "User56"], ["updated_at", "2014-04-12 20:49:16.147242"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.149320"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:49:16.149320"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:16.154408"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.154408"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.168722"], ["name", "User57"], ["updated_at", "2014-04-12 20:49:16.168722"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.170860"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:49:16.170860"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:16.175801"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.175801"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.8ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.272973"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.272973"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:16.320562"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.320562"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.358577"], ["name", "User58"], ["updated_at", "2014-04-12 20:49:16.358577"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.361281"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:49:16.361281"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:16.366360"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.366360"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.377834"], ["name", "User59"], ["updated_at", "2014-04-12 20:49:16.377834"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:49:16.380982"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:49:16.380982"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:16.386282"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:16.386282"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:49:16 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.397203"], ["name", "User60"], ["updated_at", "2014-04-12 20:49:16.397203"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:49:16.400902"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:49:16.398551"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:49:16.400902"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:16.415982"], ["name", "User61"], ["updated_at", "2014-04-12 20:49:16.415982"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:49:16.418633"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:49:16.416969"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:49:16.418633"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:49:16.474413"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:16.489168"], ["name", "User62"], ["updated_at", "2014-04-12 20:49:16.489168"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:49:16.491971"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:49:16.490175"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:49:16.491971"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:49:16.503142"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:45.228405"], ["name", "User1"], ["updated_at", "2014-04-12 20:49:45.228405"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.315084"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:49:45.315084"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:45.379639"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.379639"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:49:45 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.403863"], ["name", "Admin"], ["updated_at", "2014-04-12 20:49:45.403863"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:49:45.405833"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:49:45.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:49:45.405833"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.416749"], ["name", "User2"], ["updated_at", "2014-04-12 20:49:45.416749"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.418852"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:49:45.418852"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.425457"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.425457"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.449455"], ["name", "User3"], ["updated_at", "2014-04-12 20:49:45.449455"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.451611"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:49:45.451611"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.457877"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.457877"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 129ms (Views: 127.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.606511"], ["name", "User4"], ["updated_at", "2014-04-12 20:49:45.606511"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.608559"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:49:45.608559"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.614871"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.614871"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.643561"], ["name", "User5"], ["updated_at", "2014-04-12 20:49:45.643561"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.645714"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:49:45.645714"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.651801"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.651801"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:49:45.665027"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.674645"], ["name", "User6"], ["updated_at", "2014-04-12 20:49:45.674645"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.676764"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:49:45.676764"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.682914"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.682914"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:45.709338"], ["name", "User7"], ["updated_at", "2014-04-12 20:49:45.709338"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.711663"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:49:45.711663"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:45.718724"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.718724"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.5ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:45.780912"], ["name", "User8"], ["updated_at", "2014-04-12 20:49:45.780912"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.783118"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:49:45.783118"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:45.789304"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.789304"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:45.930765"], ["name", "User9"], ["updated_at", "2014-04-12 20:49:45.930765"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.932818"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:49:45.932818"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.937823"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:45.937823"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:45.951954"], ["name", "User10"], ["updated_at", "2014-04-12 20:49:45.951954"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:49:45.996363"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:49:45.996363"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.019768"], ["name", "User11"], ["updated_at", "2014-04-12 20:49:46.019768"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.022023"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:49:46.022023"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.027132"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.027132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.048963"], ["name", "User12"], ["updated_at", "2014-04-12 20:49:46.048963"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.051209"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:49:46.051209"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.056378"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.056378"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.089061"], ["name", "User13"], ["updated_at", "2014-04-12 20:49:46.089061"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.091051"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:49:46.091051"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.096132"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.096132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.124976"], ["name", "User14"], ["updated_at", "2014-04-12 20:49:46.124976"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.127137"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:49:46.127137"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.132154"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.132154"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.156573"], ["name", "User15"], ["updated_at", "2014-04-12 20:49:46.156573"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.158785"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:49:46.158785"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.164123"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.164123"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.233170"], ["name", "User16"], ["updated_at", "2014-04-12 20:49:46.233170"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.235286"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:49:46.235286"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.240226"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.240226"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.260517"], ["name", "User17"], ["updated_at", "2014-04-12 20:49:46.260517"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.262944"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:49:46.262944"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.268071"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.268071"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.296667"], ["name", "User18"], ["updated_at", "2014-04-12 20:49:46.296667"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.298710"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:49:46.298710"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.303834"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.303834"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.316895"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:49:46.316895"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.326275"], ["name", "User19"], ["updated_at", "2014-04-12 20:49:46.326275"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.328412"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:49:46.328412"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.333434"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.333434"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.354730"], ["name", "User20"], ["updated_at", "2014-04-12 20:49:46.354730"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.356793"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:49:46.356793"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.361706"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.361706"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.391267"], ["name", "User21"], ["updated_at", "2014-04-12 20:49:46.391267"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.393476"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:49:46.393476"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.398617"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.398617"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.469846"], ["name", "User22"], ["updated_at", "2014-04-12 20:49:46.469846"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.472003"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:49:46.472003"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.477127"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.477127"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:49:46.490244"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.500642"], ["name", "User23"], ["updated_at", "2014-04-12 20:49:46.500642"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.503011"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:49:46.503011"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.508195"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.508195"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.534814"], ["name", "User24"], ["updated_at", "2014-04-12 20:49:46.534814"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.536925"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:49:46.536925"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.542109"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.542109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.563905"], ["name", "User25"], ["updated_at", "2014-04-12 20:49:46.563905"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.566172"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:49:46.566172"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.571597"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.571597"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.600830"], ["name", "User26"], ["updated_at", "2014-04-12 20:49:46.600830"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.602974"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:49:46.602974"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.620867"], ["name", "User27"], ["updated_at", "2014-04-12 20:49:46.620867"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.623108"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:49:46.623108"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.639705"], ["name", "User28"], ["updated_at", "2014-04-12 20:49:46.639705"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.641951"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:49:46.641951"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.715176"], ["name", "User29"], ["updated_at", "2014-04-12 20:49:46.715176"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.717231"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:49:46.717231"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.742300"], ["name", "User30"], ["updated_at", "2014-04-12 20:49:46.742300"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.744602"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:49:46.744602"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.768256"], ["name", "User31"], ["updated_at", "2014-04-12 20:49:46.768256"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.770490"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:49:46.770490"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.788145"], ["name", "User32"], ["updated_at", "2014-04-12 20:49:46.788145"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.790267"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:49:46.790267"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.812059"], ["name", "User33"], ["updated_at", "2014-04-12 20:49:46.812059"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.814484"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:49:46.814484"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.830374"], ["name", "User34"], ["updated_at", "2014-04-12 20:49:46.830374"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.832684"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:49:46.832684"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.855864"], ["name", "User35"], ["updated_at", "2014-04-12 20:49:46.855864"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.857982"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:49:46.857982"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.874770"], ["name", "User36"], ["updated_at", "2014-04-12 20:49:46.874770"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.876854"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:49:46.876854"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.881874"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.881874"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.3ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.943315"], ["name", "User37"], ["updated_at", "2014-04-12 20:49:46.943315"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.945819"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:49:46.945819"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:46.950922"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.950922"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:46.967527"], ["name", "User38"], ["updated_at", "2014-04-12 20:49:46.967527"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.969793"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:49:46.969793"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.974896"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:46.974896"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:46.995618"], ["name", "User39"], ["updated_at", "2014-04-12 20:49:46.995618"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:49:46.997977"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:49:46.997977"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:47.003635"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.003635"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.008883"], ["name", "User40"], ["updated_at", "2014-04-12 20:49:47.008883"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.010947"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:49:47.010947"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.020313"], ["name", "User41"], ["updated_at", "2014-04-12 20:49:47.020313"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.022560"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:49:47.022560"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 72ms (Views: 68.5ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.111355"], ["name", "User42"], ["updated_at", "2014-04-12 20:49:47.111355"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.113476"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:49:47.113476"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:47.118420"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.118420"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.124240"], ["name", "User43"], ["updated_at", "2014-04-12 20:49:47.124240"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.126307"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:49:47.126307"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.9ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.133012"], ["name", "User44"], ["updated_at", "2014-04-12 20:49:47.133012"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.135054"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:49:47.135054"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.7ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.165889"], ["name", "User45"], ["updated_at", "2014-04-12 20:49:47.165889"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.167948"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:49:47.167948"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.172923"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.172923"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.177941"], ["name", "User46"], ["updated_at", "2014-04-12 20:49:47.177941"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.179877"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:49:47.179877"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.185758"], ["name", "User47"], ["updated_at", "2014-04-12 20:49:47.185758"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.187812"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:49:47.187812"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.219573"], ["name", "User48"], ["updated_at", "2014-04-12 20:49:47.219573"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.221693"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:49:47.221693"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.227857"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.227857"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.233312"], ["name", "User49"], ["updated_at", "2014-04-12 20:49:47.233312"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.235242"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:49:47.235242"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.240725"], ["name", "User50"], ["updated_at", "2014-04-12 20:49:47.240725"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.242775"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:49:47.242775"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 4ms
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.308276"], ["name", "User51"], ["updated_at", "2014-04-12 20:49:47.308276"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.310636"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:49:47.310636"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:47.315663"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.315663"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.321116"], ["name", "User52"], ["updated_at", "2014-04-12 20:49:47.321116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.324260"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:49:47.324260"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:49:47.329838"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.352132"], ["name", "User53"], ["updated_at", "2014-04-12 20:49:47.352132"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.355701"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:49:47.355701"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.361441"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.361441"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.366922"], ["name", "User54"], ["updated_at", "2014-04-12 20:49:47.366922"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.368928"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:49:47.368928"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-12 20:49:47.376994"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (3.2ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.402870"], ["name", "User55"], ["updated_at", "2014-04-12 20:49:47.402870"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.405090"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:49:47.405090"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:47.409976"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.409976"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:49:47.415020"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:49:47.420666"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 2]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.447054"], ["name", "User56"], ["updated_at", "2014-04-12 20:49:47.447054"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.449092"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:49:47.449092"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.455328"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.455328"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.468970"], ["name", "User57"], ["updated_at", "2014-04-12 20:49:47.468970"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.471319"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:49:47.471319"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.477883"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.477883"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:49:47.584721"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.584721"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.633276"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.633276"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.4ms)
Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.671770"], ["name", "User58"], ["updated_at", "2014-04-12 20:49:47.671770"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.674987"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:49:47.674987"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.680070"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.680070"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.693145"], ["name", "User59"], ["updated_at", "2014-04-12 20:49:47.693145"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:49:47.695192"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:49:47.695192"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.700194"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:49:47.700194"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:49:47 +0200
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.712585"], ["name", "User60"], ["updated_at", "2014-04-12 20:49:47.712585"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:49:47.716020"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:49:47.713889"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:49:47.716020"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:49:47.729932"], ["name", "User61"], ["updated_at", "2014-04-12 20:49:47.729932"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:49:47.732652"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:49:47.730901"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:49:47.732652"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:49:47.743871"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (2.6ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:49:47.804608"], ["name", "User62"], ["updated_at", "2014-04-12 20:49:47.804608"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:49:47.807259"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:49:47.805524"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:49:47.807259"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:49:47.818434"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:09.243465"], ["name", "User1"], ["updated_at", "2014-04-12 20:50:09.243465"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.329925"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:50:09.329925"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:09.392053"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.392053"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:50:09 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.416257"], ["name", "Admin"], ["updated_at", "2014-04-12 20:50:09.416257"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:50:09.418152"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:50:09.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:09.418152"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.429620"], ["name", "User2"], ["updated_at", "2014-04-12 20:50:09.429620"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.431825"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:50:09.431825"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.438316"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.438316"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.464387"], ["name", "User3"], ["updated_at", "2014-04-12 20:50:09.464387"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.466608"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:50:09.466608"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.473166"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.473166"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 131ms (Views: 129.2ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.623296"], ["name", "User4"], ["updated_at", "2014-04-12 20:50:09.623296"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.625585"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:50:09.625585"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.631637"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.631637"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (4.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.660101"], ["name", "User5"], ["updated_at", "2014-04-12 20:50:09.660101"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.662473"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:50:09.662473"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.668759"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.668759"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:09.683552"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.694008"], ["name", "User6"], ["updated_at", "2014-04-12 20:50:09.694008"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.696176"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:50:09.696176"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.702858"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.702858"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:09.731300"], ["name", "User7"], ["updated_at", "2014-04-12 20:50:09.731300"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.733574"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:50:09.733574"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:09.739761"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.739761"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.5ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:09.802236"], ["name", "User8"], ["updated_at", "2014-04-12 20:50:09.802236"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.804663"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:50:09.804663"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:09.811128"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.811128"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:09.954773"], ["name", "User9"], ["updated_at", "2014-04-12 20:50:09.954773"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:50:09.956844"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:50:09.956844"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.962028"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:09.962028"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:09.975715"], ["name", "User10"], ["updated_at", "2014-04-12 20:50:09.975715"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.020398"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:50:10.020398"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.043917"], ["name", "User11"], ["updated_at", "2014-04-12 20:50:10.043917"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.046322"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:50:10.046322"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.051591"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.051591"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.073357"], ["name", "User12"], ["updated_at", "2014-04-12 20:50:10.073357"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.075533"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:50:10.075533"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.080623"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.080623"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.112197"], ["name", "User13"], ["updated_at", "2014-04-12 20:50:10.112197"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.114283"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:50:10.114283"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.119160"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.119160"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.147804"], ["name", "User14"], ["updated_at", "2014-04-12 20:50:10.147804"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.149971"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:50:10.149971"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.154952"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.154952"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.178728"], ["name", "User15"], ["updated_at", "2014-04-12 20:50:10.178728"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.180969"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:50:10.180969"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.186127"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.186127"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.254368"], ["name", "User16"], ["updated_at", "2014-04-12 20:50:10.254368"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.256381"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:50:10.256381"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.261243"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.261243"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.281782"], ["name", "User17"], ["updated_at", "2014-04-12 20:50:10.281782"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.284268"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:50:10.284268"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.289497"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.289497"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.319331"], ["name", "User18"], ["updated_at", "2014-04-12 20:50:10.319331"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.321466"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:50:10.321466"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.326611"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.326611"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.340964"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:10.340964"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.350343"], ["name", "User19"], ["updated_at", "2014-04-12 20:50:10.350343"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.352360"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:50:10.352360"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.357331"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.357331"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.378542"], ["name", "User20"], ["updated_at", "2014-04-12 20:50:10.378542"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.380741"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:50:10.380741"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.386460"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.386460"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.417882"], ["name", "User21"], ["updated_at", "2014-04-12 20:50:10.417882"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.420297"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:50:10.420297"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.426302"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.426302"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.497298"], ["name", "User22"], ["updated_at", "2014-04-12 20:50:10.497298"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.499336"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:50:10.499336"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.504416"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.504416"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:50:10.516958"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.526526"], ["name", "User23"], ["updated_at", "2014-04-12 20:50:10.526526"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.528640"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:50:10.528640"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.533614"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.533614"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.562231"], ["name", "User24"], ["updated_at", "2014-04-12 20:50:10.562231"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.564675"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:50:10.564675"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.570256"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.570256"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.590606"], ["name", "User25"], ["updated_at", "2014-04-12 20:50:10.590606"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.592770"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:50:10.592770"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.597875"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.597875"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.626076"], ["name", "User26"], ["updated_at", "2014-04-12 20:50:10.626076"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.628123"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:50:10.628123"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.647382"], ["name", "User27"], ["updated_at", "2014-04-12 20:50:10.647382"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.649657"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:50:10.649657"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.666073"], ["name", "User28"], ["updated_at", "2014-04-12 20:50:10.666073"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.668205"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:50:10.668205"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.739709"], ["name", "User29"], ["updated_at", "2014-04-12 20:50:10.739709"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.741825"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:50:10.741825"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.766828"], ["name", "User30"], ["updated_at", "2014-04-12 20:50:10.766828"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.768908"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:50:10.768908"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.791773"], ["name", "User31"], ["updated_at", "2014-04-12 20:50:10.791773"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.793927"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:50:10.793927"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.811308"], ["name", "User32"], ["updated_at", "2014-04-12 20:50:10.811308"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.813491"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:50:10.813491"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.835024"], ["name", "User33"], ["updated_at", "2014-04-12 20:50:10.835024"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.837243"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:50:10.837243"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.852670"], ["name", "User34"], ["updated_at", "2014-04-12 20:50:10.852670"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.854900"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:50:10.854900"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.877844"], ["name", "User35"], ["updated_at", "2014-04-12 20:50:10.877844"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.879945"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:50:10.879945"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.896227"], ["name", "User36"], ["updated_at", "2014-04-12 20:50:10.896227"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.898233"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:50:10.898233"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.903223"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.903223"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.5ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.965247"], ["name", "User37"], ["updated_at", "2014-04-12 20:50:10.965247"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.967769"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:50:10.967769"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:10.972999"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.972999"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:10.987849"], ["name", "User38"], ["updated_at", "2014-04-12 20:50:10.987849"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:50:10.989976"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:50:10.989976"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:10.995030"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:10.995030"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.015306"], ["name", "User39"], ["updated_at", "2014-04-12 20:50:11.015306"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.017399"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:50:11.017399"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.022570"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.022570"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.027807"], ["name", "User40"], ["updated_at", "2014-04-12 20:50:11.027807"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.029858"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:50:11.029858"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.035737"], ["name", "User41"], ["updated_at", "2014-04-12 20:50:11.035737"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.037741"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:50:11.037741"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.6ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 69ms (Views: 65.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.123645"], ["name", "User42"], ["updated_at", "2014-04-12 20:50:11.123645"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.125838"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:50:11.125838"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.130989"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.130989"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.136677"], ["name", "User43"], ["updated_at", "2014-04-12 20:50:11.136677"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.138842"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:50:11.138842"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.145046"], ["name", "User44"], ["updated_at", "2014-04-12 20:50:11.145046"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.147205"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:50:11.147205"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.7ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (3.0ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.174879"], ["name", "User45"], ["updated_at", "2014-04-12 20:50:11.174879"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.177026"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:50:11.177026"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.182043"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.182043"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.187509"], ["name", "User46"], ["updated_at", "2014-04-12 20:50:11.187509"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.189481"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:50:11.189481"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.195295"], ["name", "User47"], ["updated_at", "2014-04-12 20:50:11.195295"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.197387"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:50:11.197387"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.3ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.228660"], ["name", "User48"], ["updated_at", "2014-04-12 20:50:11.228660"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.230696"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:50:11.230696"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.235796"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.235796"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.241007"], ["name", "User49"], ["updated_at", "2014-04-12 20:50:11.241007"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.243418"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:50:11.243418"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.250273"], ["name", "User50"], ["updated_at", "2014-04-12 20:50:11.250273"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.252683"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:50:11.252683"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 500 Internal Server Error in 4ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.316523"], ["name", "User51"], ["updated_at", "2014-04-12 20:50:11.316523"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.318756"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:50:11.318756"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.323924"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.323924"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.329134"], ["name", "User52"], ["updated_at", "2014-04-12 20:50:11.329134"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.331178"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:50:11.331178"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:50:11.336957"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.358888"], ["name", "User53"], ["updated_at", "2014-04-12 20:50:11.358888"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.361180"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:50:11.361180"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.367004"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.367004"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.373264"], ["name", "User54"], ["updated_at", "2014-04-12 20:50:11.373264"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.375446"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:50:11.375446"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:50:11.383915"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.408779"], ["name", "User55"], ["updated_at", "2014-04-12 20:50:11.408779"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.410819"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:50:11.410819"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.415763"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.415763"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:50:11.420802"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:50:11.425538"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.451770"], ["name", "User56"], ["updated_at", "2014-04-12 20:50:11.451770"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.454062"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:50:11.454062"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.459153"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.459153"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.473694"], ["name", "User57"], ["updated_at", "2014-04-12 20:50:11.473694"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.475703"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:50:11.475703"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.480443"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.480443"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.578515"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.578515"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.624158"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.624158"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.3ms)
Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.660209"], ["name", "User58"], ["updated_at", "2014-04-12 20:50:11.660209"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.662570"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:50:11.662570"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.667559"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.667559"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.679514"], ["name", "User59"], ["updated_at", "2014-04-12 20:50:11.679514"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:50:11.681715"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:50:11.681715"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:11.687286"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:11.687286"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:50:11 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.698365"], ["name", "User60"], ["updated_at", "2014-04-12 20:50:11.698365"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:50:11.701974"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:50:11.699647"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:50:11.701974"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:11.716208"], ["name", "User61"], ["updated_at", "2014-04-12 20:50:11.716208"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:50:11.718761"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:50:11.717083"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:50:11.718761"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:50:11.729049"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (2.9ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:11.787574"], ["name", "User62"], ["updated_at", "2014-04-12 20:50:11.787574"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:50:11.790241"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:50:11.788497"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:50:11.790241"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:50:11.801506"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:51.109388"], ["name", "User1"], ["updated_at", "2014-04-12 20:50:51.109388"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.195441"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:50:51.195441"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:51.255581"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.255581"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:50:51 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.279873"], ["name", "Admin"], ["updated_at", "2014-04-12 20:50:51.279873"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:50:51.281652"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:50:51.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:51.281652"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.292570"], ["name", "User2"], ["updated_at", "2014-04-12 20:50:51.292570"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.294755"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:50:51.294755"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.300732"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.300732"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.324647"], ["name", "User3"], ["updated_at", "2014-04-12 20:50:51.324647"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.326873"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:50:51.326873"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.332960"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.332960"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 128ms (Views: 126.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.479982"], ["name", "User4"], ["updated_at", "2014-04-12 20:50:51.479982"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.482187"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:50:51.482187"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.488798"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.488798"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.518544"], ["name", "User5"], ["updated_at", "2014-04-12 20:50:51.518544"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.520881"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:50:51.520881"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.527326"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.527326"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:51.542073"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.552188"], ["name", "User6"], ["updated_at", "2014-04-12 20:50:51.552188"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.554532"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:50:51.554532"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.566653"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.566653"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:51.594076"], ["name", "User7"], ["updated_at", "2014-04-12 20:50:51.594076"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.596571"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:50:51.596571"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:51.603222"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.603222"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:51.665118"], ["name", "User8"], ["updated_at", "2014-04-12 20:50:51.665118"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.667213"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:50:51.667213"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:51.673487"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.673487"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:51.818617"], ["name", "User9"], ["updated_at", "2014-04-12 20:50:51.818617"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.820775"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:50:51.820775"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.826034"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.826034"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.840095"], ["name", "User10"], ["updated_at", "2014-04-12 20:50:51.840095"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.883593"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:50:51.883593"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.907541"], ["name", "User11"], ["updated_at", "2014-04-12 20:50:51.907541"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.909817"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:50:51.909817"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:51.915163"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.915163"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:51.937615"], ["name", "User12"], ["updated_at", "2014-04-12 20:50:51.937615"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.939695"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:50:51.939695"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.944703"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.944703"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:51.976225"], ["name", "User13"], ["updated_at", "2014-04-12 20:50:51.976225"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:50:51.978488"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:50:51.978488"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:51.983732"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:51.983732"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.2ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.012298"], ["name", "User14"], ["updated_at", "2014-04-12 20:50:52.012298"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.014302"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:50:52.014302"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.019239"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.019239"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.043283"], ["name", "User15"], ["updated_at", "2014-04-12 20:50:52.043283"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.045425"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:50:52.045425"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.050354"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.050354"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (42.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.120268"], ["name", "User16"], ["updated_at", "2014-04-12 20:50:52.120268"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.122476"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:50:52.122476"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.127472"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.127472"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.147578"], ["name", "User17"], ["updated_at", "2014-04-12 20:50:52.147578"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.149710"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:50:52.149710"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.155344"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.155344"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.184969"], ["name", "User18"], ["updated_at", "2014-04-12 20:50:52.184969"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.187194"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:50:52.187194"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.192634"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.192634"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.207944"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:52.207944"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.217410"], ["name", "User19"], ["updated_at", "2014-04-12 20:50:52.217410"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.219482"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:50:52.219482"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.224496"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.224496"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.245522"], ["name", "User20"], ["updated_at", "2014-04-12 20:50:52.245522"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.247758"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:50:52.247758"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.252967"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.252967"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.280968"], ["name", "User21"], ["updated_at", "2014-04-12 20:50:52.280968"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.283180"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:50:52.283180"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.288176"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.288176"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (44.0ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.363034"], ["name", "User22"], ["updated_at", "2014-04-12 20:50:52.363034"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.365307"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:50:52.365307"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.370855"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.370855"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:50:52.383973"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.393143"], ["name", "User23"], ["updated_at", "2014-04-12 20:50:52.393143"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.395328"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:50:52.395328"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.400354"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.400354"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.428112"], ["name", "User24"], ["updated_at", "2014-04-12 20:50:52.428112"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.430479"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:50:52.430479"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.436546"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.436546"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.459030"], ["name", "User25"], ["updated_at", "2014-04-12 20:50:52.459030"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.461183"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:50:52.461183"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.466170"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.466170"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.494856"], ["name", "User26"], ["updated_at", "2014-04-12 20:50:52.494856"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.497119"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:50:52.497119"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.516077"], ["name", "User27"], ["updated_at", "2014-04-12 20:50:52.516077"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.518496"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:50:52.518496"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.534882"], ["name", "User28"], ["updated_at", "2014-04-12 20:50:52.534882"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.537095"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:50:52.537095"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.7ms)
[1m[35m (2.7ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (44.6ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.614833"], ["name", "User29"], ["updated_at", "2014-04-12 20:50:52.614833"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.616888"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:50:52.616888"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.642994"], ["name", "User30"], ["updated_at", "2014-04-12 20:50:52.642994"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.646350"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:50:52.646350"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.672562"], ["name", "User31"], ["updated_at", "2014-04-12 20:50:52.672562"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.674689"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:50:52.674689"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.691775"], ["name", "User32"], ["updated_at", "2014-04-12 20:50:52.691775"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.693891"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:50:52.693891"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.715866"], ["name", "User33"], ["updated_at", "2014-04-12 20:50:52.715866"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.718361"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:50:52.718361"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.734009"], ["name", "User34"], ["updated_at", "2014-04-12 20:50:52.734009"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.736302"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:50:52.736302"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.759464"], ["name", "User35"], ["updated_at", "2014-04-12 20:50:52.759464"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.761712"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:50:52.761712"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.779024"], ["name", "User36"], ["updated_at", "2014-04-12 20:50:52.779024"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.781061"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:50:52.781061"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.786064"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.786064"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.6ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.850993"], ["name", "User37"], ["updated_at", "2014-04-12 20:50:52.850993"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.853469"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:50:52.853469"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.858649"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.858649"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.873402"], ["name", "User38"], ["updated_at", "2014-04-12 20:50:52.873402"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.875780"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:50:52.875780"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.881090"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.881090"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:52.901656"], ["name", "User39"], ["updated_at", "2014-04-12 20:50:52.901656"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.903972"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:50:52.903972"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:52.910016"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:52.910016"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.915561"], ["name", "User40"], ["updated_at", "2014-04-12 20:50:52.915561"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.917607"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:50:52.917607"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:52.923457"], ["name", "User41"], ["updated_at", "2014-04-12 20:50:52.923457"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:50:52.925638"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:50:52.925638"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 69ms (Views: 65.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.011965"], ["name", "User42"], ["updated_at", "2014-04-12 20:50:53.011965"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.014138"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:50:53.014138"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.019507"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.019507"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.025444"], ["name", "User43"], ["updated_at", "2014-04-12 20:50:53.025444"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.027569"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:50:53.027569"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.033282"], ["name", "User44"], ["updated_at", "2014-04-12 20:50:53.033282"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.035400"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:50:53.035400"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.6ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.062164"], ["name", "User45"], ["updated_at", "2014-04-12 20:50:53.062164"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.064505"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:50:53.064505"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.069760"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.069760"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.075109"], ["name", "User46"], ["updated_at", "2014-04-12 20:50:53.075109"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.077188"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:50:53.077188"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.083045"], ["name", "User47"], ["updated_at", "2014-04-12 20:50:53.083045"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.085063"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:50:53.085063"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.4ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.117404"], ["name", "User48"], ["updated_at", "2014-04-12 20:50:53.117404"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.119454"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:50:53.119454"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.125480"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.125480"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.131055"], ["name", "User49"], ["updated_at", "2014-04-12 20:50:53.131055"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.133084"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:50:53.133084"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.139602"], ["name", "User50"], ["updated_at", "2014-04-12 20:50:53.139602"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.141882"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:50:53.141882"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 500 Internal Server Error in 4ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.207489"], ["name", "User51"], ["updated_at", "2014-04-12 20:50:53.207489"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.210018"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:50:53.210018"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.215763"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.215763"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.221978"], ["name", "User52"], ["updated_at", "2014-04-12 20:50:53.221978"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.224320"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:50:53.224320"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:50:53.230864"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.0ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.255892"], ["name", "User53"], ["updated_at", "2014-04-12 20:50:53.255892"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.258577"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:50:53.258577"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.264374"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.264374"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.270733"], ["name", "User54"], ["updated_at", "2014-04-12 20:50:53.270733"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.273002"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:50:53.273002"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:50:53.281564"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.5ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.308416"], ["name", "User55"], ["updated_at", "2014-04-12 20:50:53.308416"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.310560"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:50:53.310560"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.315566"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.315566"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:50:53.320744"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:50:53.325717"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.352217"], ["name", "User56"], ["updated_at", "2014-04-12 20:50:53.352217"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.354527"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:50:53.354527"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.359630"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.359630"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.374051"], ["name", "User57"], ["updated_at", "2014-04-12 20:50:53.374051"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.376327"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:50:53.376327"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.381655"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.381655"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.478624"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.478624"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.535000"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.535000"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.2ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.575269"], ["name", "User58"], ["updated_at", "2014-04-12 20:50:53.575269"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.577735"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:50:53.577735"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.583876"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.583876"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.597005"], ["name", "User59"], ["updated_at", "2014-04-12 20:50:53.597005"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:50:53.599336"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:50:53.599336"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:53.605234"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:53.605234"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:50:53 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.617697"], ["name", "User60"], ["updated_at", "2014-04-12 20:50:53.617697"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:50:53.621515"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:50:53.619100"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:50:53.621515"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:53.637020"], ["name", "User61"], ["updated_at", "2014-04-12 20:50:53.637020"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:50:53.639666"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:50:53.637912"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:50:53.639666"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:50:53.650585"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (3.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:53.712646"], ["name", "User62"], ["updated_at", "2014-04-12 20:50:53.712646"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:50:53.715742"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:50:53.713713"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:50:53.715742"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:50:53.728725"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.044041"], ["name", "User1"], ["updated_at", "2014-04-12 20:50:59.044041"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.131898"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:50:59.131898"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:59.196581"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.196581"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:50:59 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.221191"], ["name", "Admin"], ["updated_at", "2014-04-12 20:50:59.221191"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:50:59.223324"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:50:59.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:59.223324"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.234379"], ["name", "User2"], ["updated_at", "2014-04-12 20:50:59.234379"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.236546"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:50:59.236546"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.243111"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.243111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.267603"], ["name", "User3"], ["updated_at", "2014-04-12 20:50:59.267603"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.269772"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:50:59.269772"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.276320"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.276320"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 128ms (Views: 125.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.424831"], ["name", "User4"], ["updated_at", "2014-04-12 20:50:59.424831"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.427097"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:50:59.427097"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.433164"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.433164"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.460787"], ["name", "User5"], ["updated_at", "2014-04-12 20:50:59.460787"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.462991"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:50:59.462991"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.469062"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.469062"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:50:59.482751"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.492016"], ["name", "User6"], ["updated_at", "2014-04-12 20:50:59.492016"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.494231"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:50:59.494231"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.500466"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.500466"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.526817"], ["name", "User7"], ["updated_at", "2014-04-12 20:50:59.526817"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.528932"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:50:59.528932"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:59.535328"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.535328"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.6ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.598468"], ["name", "User8"], ["updated_at", "2014-04-12 20:50:59.598468"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.600630"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:50:59.600630"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:59.607077"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.607077"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.747319"], ["name", "User9"], ["updated_at", "2014-04-12 20:50:59.747319"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.749438"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:50:59.749438"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.754386"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.754386"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.768388"], ["name", "User10"], ["updated_at", "2014-04-12 20:50:59.768388"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.813790"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:50:59.813790"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.838959"], ["name", "User11"], ["updated_at", "2014-04-12 20:50:59.838959"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.841262"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:50:59.841262"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:59.846671"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.846671"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.870503"], ["name", "User12"], ["updated_at", "2014-04-12 20:50:59.870503"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.872666"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:50:59.872666"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.877744"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.877744"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.5ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.911259"], ["name", "User13"], ["updated_at", "2014-04-12 20:50:59.911259"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.913440"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:50:59.913440"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:50:59.918442"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.918442"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.948148"], ["name", "User14"], ["updated_at", "2014-04-12 20:50:59.948148"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.950365"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:50:59.950365"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.955547"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.955547"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:50:59.979289"], ["name", "User15"], ["updated_at", "2014-04-12 20:50:59.979289"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:50:59.981646"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:50:59.981646"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:50:59.986904"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:50:59.986904"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.058957"], ["name", "User16"], ["updated_at", "2014-04-12 20:51:00.058957"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.061164"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:51:00.061164"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.066333"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.066333"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.087720"], ["name", "User17"], ["updated_at", "2014-04-12 20:51:00.087720"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.089944"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:51:00.089944"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.095482"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.095482"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.127032"], ["name", "User18"], ["updated_at", "2014-04-12 20:51:00.127032"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.129103"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:51:00.129103"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.134061"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.134061"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.147187"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:51:00.147187"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.156960"], ["name", "User19"], ["updated_at", "2014-04-12 20:51:00.156960"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.159304"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:51:00.159304"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.164628"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.164628"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.186363"], ["name", "User20"], ["updated_at", "2014-04-12 20:51:00.186363"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.188467"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:51:00.188467"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.193422"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.193422"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.238490"], ["name", "User21"], ["updated_at", "2014-04-12 20:51:00.238490"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.240632"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:51:00.240632"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.245798"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.245798"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.318300"], ["name", "User22"], ["updated_at", "2014-04-12 20:51:00.318300"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.320520"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:51:00.320520"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.325799"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.325799"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:51:00.338321"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.347960"], ["name", "User23"], ["updated_at", "2014-04-12 20:51:00.347960"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.350212"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:51:00.350212"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.355360"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.355360"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.383174"], ["name", "User24"], ["updated_at", "2014-04-12 20:51:00.383174"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.385597"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:51:00.385597"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.391426"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.391426"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.412449"], ["name", "User25"], ["updated_at", "2014-04-12 20:51:00.412449"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.414601"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:51:00.414601"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.419907"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.419907"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.450797"], ["name", "User26"], ["updated_at", "2014-04-12 20:51:00.450797"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.452958"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:51:00.452958"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.471904"], ["name", "User27"], ["updated_at", "2014-04-12 20:51:00.471904"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.474900"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:51:00.474900"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.492270"], ["name", "User28"], ["updated_at", "2014-04-12 20:51:00.492270"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.494625"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:51:00.494625"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 16ms (Views: 12.1ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.576020"], ["name", "User29"], ["updated_at", "2014-04-12 20:51:00.576020"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.578209"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:51:00.578209"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.604927"], ["name", "User30"], ["updated_at", "2014-04-12 20:51:00.604927"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.607341"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:51:00.607341"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (5.3ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.635262"], ["name", "User31"], ["updated_at", "2014-04-12 20:51:00.635262"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.637802"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:51:00.637802"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.659174"], ["name", "User32"], ["updated_at", "2014-04-12 20:51:00.659174"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.661822"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:51:00.661822"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.688771"], ["name", "User33"], ["updated_at", "2014-04-12 20:51:00.688771"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.691267"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:51:00.691267"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.708965"], ["name", "User34"], ["updated_at", "2014-04-12 20:51:00.708965"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.4ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.711710"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:51:00.711710"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.739407"], ["name", "User35"], ["updated_at", "2014-04-12 20:51:00.739407"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.741704"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:51:00.741704"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.760546"], ["name", "User36"], ["updated_at", "2014-04-12 20:51:00.760546"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.763073"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:51:00.763073"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.768585"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.768585"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.7ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.837166"], ["name", "User37"], ["updated_at", "2014-04-12 20:51:00.837166"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.839913"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:51:00.839913"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.845623"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.845623"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.862090"], ["name", "User38"], ["updated_at", "2014-04-12 20:51:00.862090"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.864592"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:51:00.864592"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.870168"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.870168"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:00.893877"], ["name", "User39"], ["updated_at", "2014-04-12 20:51:00.893877"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.896218"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:51:00.896218"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:00.901711"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:00.901711"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.907442"], ["name", "User40"], ["updated_at", "2014-04-12 20:51:00.907442"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.909523"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:51:00.909523"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:00.915385"], ["name", "User41"], ["updated_at", "2014-04-12 20:51:00.915385"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:51:00.917473"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:51:00.917473"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.8ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (5.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 76ms (Views: 71.8ms | ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.011860"], ["name", "User42"], ["updated_at", "2014-04-12 20:51:01.011860"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.014462"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:51:01.014462"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.020481"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.020481"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.026594"], ["name", "User43"], ["updated_at", "2014-04-12 20:51:01.026594"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.028760"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:51:01.028760"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.034930"], ["name", "User44"], ["updated_at", "2014-04-12 20:51:01.034930"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.037199"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:51:01.037199"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.7ms)
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.9ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 12ms (Views: 7.3ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.066890"], ["name", "User45"], ["updated_at", "2014-04-12 20:51:01.066890"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.069279"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:51:01.069279"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.075072"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.075072"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.080683"], ["name", "User46"], ["updated_at", "2014-04-12 20:51:01.080683"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.082919"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:51:01.082919"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.089013"], ["name", "User47"], ["updated_at", "2014-04-12 20:51:01.089013"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.091075"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:51:01.091075"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.125028"], ["name", "User48"], ["updated_at", "2014-04-12 20:51:01.125028"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.127410"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:51:01.127410"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.133032"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.133032"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.138245"], ["name", "User49"], ["updated_at", "2014-04-12 20:51:01.138245"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.140255"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:51:01.140255"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.146192"], ["name", "User50"], ["updated_at", "2014-04-12 20:51:01.146192"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.148188"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:51:01.148188"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 500 Internal Server Error in 4ms
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.215395"], ["name", "User51"], ["updated_at", "2014-04-12 20:51:01.215395"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.217651"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:51:01.217651"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.223198"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.223198"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.228934"], ["name", "User52"], ["updated_at", "2014-04-12 20:51:01.228934"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.230984"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:51:01.230984"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:51:01.236644"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.259273"], ["name", "User53"], ["updated_at", "2014-04-12 20:51:01.259273"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.262201"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:51:01.262201"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.268207"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.268207"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.273644"], ["name", "User54"], ["updated_at", "2014-04-12 20:51:01.273644"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.275777"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:51:01.275777"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:51:01.284271"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.309444"], ["name", "User55"], ["updated_at", "2014-04-12 20:51:01.309444"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.311674"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:51:01.311674"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.316891"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.316891"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:51:01.322217"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:51:01.327493"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.353905"], ["name", "User56"], ["updated_at", "2014-04-12 20:51:01.353905"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.356203"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:51:01.356203"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.361860"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.361860"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.376564"], ["name", "User57"], ["updated_at", "2014-04-12 20:51:01.376564"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.378768"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:51:01.378768"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.384099"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.384099"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.9ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.491295"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.491295"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.540139"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.540139"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.9ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (11.9ms)
Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.586649"], ["name", "User58"], ["updated_at", "2014-04-12 20:51:01.586649"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.588862"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:51:01.588862"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.594201"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.594201"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.606310"], ["name", "User59"], ["updated_at", "2014-04-12 20:51:01.606310"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:51:01.608453"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:51:01.608453"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:01.613529"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:01.613529"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:51:01 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.624905"], ["name", "User60"], ["updated_at", "2014-04-12 20:51:01.624905"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:51:01.628420"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:51:01.626228"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:51:01.628420"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:01.643060"], ["name", "User61"], ["updated_at", "2014-04-12 20:51:01.643060"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:51:01.645614"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:51:01.643943"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:51:01.645614"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:51:01.655860"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (2.8ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:01.714888"], ["name", "User62"], ["updated_at", "2014-04-12 20:51:01.714888"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:51:01.717568"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:51:01.715800"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:51:01.717568"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.5ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:51:01.730767"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:34.824092"], ["name", "User1"], ["updated_at", "2014-04-12 20:51:34.824092"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:51:34.914797"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:51:34.914797"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:34.979358"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:34.979358"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:51:34 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.003361"], ["name", "Admin"], ["updated_at", "2014-04-12 20:51:35.003361"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:51:35.005310"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:51:34.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:51:35.005310"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.016730"], ["name", "User2"], ["updated_at", "2014-04-12 20:51:35.016730"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.019338"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:51:35.019338"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.027844"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.027844"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.053981"], ["name", "User3"], ["updated_at", "2014-04-12 20:51:35.053981"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.056238"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:51:35.056238"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.063366"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.063366"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (9.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 129ms (Views: 126.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.214852"], ["name", "User4"], ["updated_at", "2014-04-12 20:51:35.214852"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.217098"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:51:35.217098"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.223579"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.223579"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.252770"], ["name", "User5"], ["updated_at", "2014-04-12 20:51:35.252770"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.254841"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:51:35.254841"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.261798"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.261798"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:51:35.276518"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.286588"], ["name", "User6"], ["updated_at", "2014-04-12 20:51:35.286588"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.288780"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:51:35.288780"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.295046"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.295046"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.322423"], ["name", "User7"], ["updated_at", "2014-04-12 20:51:35.322423"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.324880"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:51:35.324880"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:35.331250"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.331250"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.6ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.393259"], ["name", "User8"], ["updated_at", "2014-04-12 20:51:35.393259"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.395350"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:51:35.395350"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:35.401313"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.401313"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.549488"], ["name", "User9"], ["updated_at", "2014-04-12 20:51:35.549488"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.551802"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:51:35.551802"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.559160"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.559160"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.618502"], ["name", "User10"], ["updated_at", "2014-04-12 20:51:35.618502"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.620748"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:51:35.620748"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.644509"], ["name", "User11"], ["updated_at", "2014-04-12 20:51:35.644509"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.646704"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:51:35.646704"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:35.651745"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.651745"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.674076"], ["name", "User12"], ["updated_at", "2014-04-12 20:51:35.674076"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.676244"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:51:35.676244"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.681302"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.681302"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.713175"], ["name", "User13"], ["updated_at", "2014-04-12 20:51:35.713175"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.715362"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:51:35.715362"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:35.720404"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.720404"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.7ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.752985"], ["name", "User14"], ["updated_at", "2014-04-12 20:51:35.752985"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.755143"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:51:35.755143"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.760103"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.760103"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.784186"], ["name", "User15"], ["updated_at", "2014-04-12 20:51:35.784186"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.786262"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:51:35.786262"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.791123"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.791123"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.861773"], ["name", "User16"], ["updated_at", "2014-04-12 20:51:35.861773"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.864097"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:51:35.864097"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:35.869070"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.869070"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.889190"], ["name", "User17"], ["updated_at", "2014-04-12 20:51:35.889190"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.891631"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:51:35.891631"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.896945"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.896945"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.926163"], ["name", "User18"], ["updated_at", "2014-04-12 20:51:35.926163"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.928682"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:51:35.928682"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.935358"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.935358"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:51:35.949935"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:51:35.949935"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.959660"], ["name", "User19"], ["updated_at", "2014-04-12 20:51:35.959660"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.962278"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:51:35.962278"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:35.967897"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:35.967897"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.6ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:35.992786"], ["name", "User20"], ["updated_at", "2014-04-12 20:51:35.992786"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:51:35.995068"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:51:35.995068"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.000232"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.000232"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.029035"], ["name", "User21"], ["updated_at", "2014-04-12 20:51:36.029035"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.031166"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:51:36.031166"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:36.036049"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.036049"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.0ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.9ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.109472"], ["name", "User22"], ["updated_at", "2014-04-12 20:51:36.109472"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.111631"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:51:36.111631"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:36.116855"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.116855"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:51:36.130771"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.140386"], ["name", "User23"], ["updated_at", "2014-04-12 20:51:36.140386"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.142785"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:51:36.142785"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.148062"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.148062"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.175470"], ["name", "User24"], ["updated_at", "2014-04-12 20:51:36.175470"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.177579"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:51:36.177579"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:36.182658"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.182658"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.203076"], ["name", "User25"], ["updated_at", "2014-04-12 20:51:36.203076"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.205474"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:51:36.205474"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.210757"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.210757"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.240680"], ["name", "User26"], ["updated_at", "2014-04-12 20:51:36.240680"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.243022"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:51:36.243022"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.261452"], ["name", "User27"], ["updated_at", "2014-04-12 20:51:36.261452"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.263715"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:51:36.263715"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.279875"], ["name", "User28"], ["updated_at", "2014-04-12 20:51:36.279875"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.282218"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:51:36.282218"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.354384"], ["name", "User29"], ["updated_at", "2014-04-12 20:51:36.354384"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.356495"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:51:36.356495"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.382151"], ["name", "User30"], ["updated_at", "2014-04-12 20:51:36.382151"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.384510"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:51:36.384510"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.5ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.410484"], ["name", "User31"], ["updated_at", "2014-04-12 20:51:36.410484"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.412623"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:51:36.412623"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.430529"], ["name", "User32"], ["updated_at", "2014-04-12 20:51:36.430529"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.432750"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:51:36.432750"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.454916"], ["name", "User33"], ["updated_at", "2014-04-12 20:51:36.454916"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.457063"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:51:36.457063"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.472627"], ["name", "User34"], ["updated_at", "2014-04-12 20:51:36.472627"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.474943"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:51:36.474943"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.498101"], ["name", "User35"], ["updated_at", "2014-04-12 20:51:36.498101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.500252"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:51:36.500252"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.516731"], ["name", "User36"], ["updated_at", "2014-04-12 20:51:36.516731"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.518762"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:51:36.518762"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.523888"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.523888"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.3ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.590860"], ["name", "User37"], ["updated_at", "2014-04-12 20:51:36.590860"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.593188"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:51:36.593188"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:36.598228"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.598228"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.613445"], ["name", "User38"], ["updated_at", "2014-04-12 20:51:36.613445"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.615592"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:51:36.615592"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.620692"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.620692"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.640688"], ["name", "User39"], ["updated_at", "2014-04-12 20:51:36.640688"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.642952"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:51:36.642952"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:36.647982"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.647982"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.653175"], ["name", "User40"], ["updated_at", "2014-04-12 20:51:36.653175"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.655209"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:51:36.655209"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.661311"], ["name", "User41"], ["updated_at", "2014-04-12 20:51:36.661311"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.663588"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:51:36.663588"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.3ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (1.7ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 71ms (Views: 67.1ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.758433"], ["name", "User42"], ["updated_at", "2014-04-12 20:51:36.758433"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.760796"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:51:36.760796"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:36.766126"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.766126"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.771367"], ["name", "User43"], ["updated_at", "2014-04-12 20:51:36.771367"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.773495"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:51:36.773495"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.779247"], ["name", "User44"], ["updated_at", "2014-04-12 20:51:36.779247"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.781335"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:51:36.781335"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.6ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.809242"], ["name", "User45"], ["updated_at", "2014-04-12 20:51:36.809242"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.811437"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:51:36.811437"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.816502"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.816502"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.822240"], ["name", "User46"], ["updated_at", "2014-04-12 20:51:36.822240"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.824321"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:51:36.824321"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.829918"], ["name", "User47"], ["updated_at", "2014-04-12 20:51:36.829918"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.831926"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:51:36.831926"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.864925"], ["name", "User48"], ["updated_at", "2014-04-12 20:51:36.864925"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.867080"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:51:36.867080"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.872000"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.872000"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.877368"], ["name", "User49"], ["updated_at", "2014-04-12 20:51:36.877368"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.879327"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:51:36.879327"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.885108"], ["name", "User50"], ["updated_at", "2014-04-12 20:51:36.885108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.887233"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:51:36.887233"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 400 Bad Request in 30ms (Views: 26.1ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (1.9ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:36.977280"], ["name", "User51"], ["updated_at", "2014-04-12 20:51:36.977280"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.979306"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:51:36.979306"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.984542"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:36.984542"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:36.989644"], ["name", "User52"], ["updated_at", "2014-04-12 20:51:36.989644"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:51:36.991650"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:51:36.991650"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:51:36.997375"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.019831"], ["name", "User53"], ["updated_at", "2014-04-12 20:51:37.019831"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.022152"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:51:37.022152"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:37.027220"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.027220"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:37.032585"], ["name", "User54"], ["updated_at", "2014-04-12 20:51:37.032585"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.034664"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:51:37.034664"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:51:37.042770"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:37.067684"], ["name", "User55"], ["updated_at", "2014-04-12 20:51:37.067684"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.069737"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:51:37.069737"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.074931"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.074931"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:51:37.079895"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:51:37.085512"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.112471"], ["name", "User56"], ["updated_at", "2014-04-12 20:51:37.112471"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.114595"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:51:37.114595"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:37.119638"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.119638"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.133794"], ["name", "User57"], ["updated_at", "2014-04-12 20:51:37.133794"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.135968"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:51:37.135968"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:37.140933"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.140933"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.0ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.236947"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.236947"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:37.281906"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.281906"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.2ms)
Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.318040"], ["name", "User58"], ["updated_at", "2014-04-12 20:51:37.318040"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.320358"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:51:37.320358"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:37.325716"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.325716"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.337454"], ["name", "User59"], ["updated_at", "2014-04-12 20:51:37.337454"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:51:37.339574"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:51:37.339574"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:51:37.344684"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:51:37.344684"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:51:37 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.355299"], ["name", "User60"], ["updated_at", "2014-04-12 20:51:37.355299"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:51:37.358986"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:51:37.356721"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:51:37.358986"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:51:37.373251"], ["name", "User61"], ["updated_at", "2014-04-12 20:51:37.373251"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:51:37.375948"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:51:37.374260"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:51:37.375948"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:51:37.385951"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (3.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:51:37.444776"], ["name", "User62"], ["updated_at", "2014-04-12 20:51:37.444776"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:51:37.447467"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:51:37.445714"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:51:37.447467"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:51:37.458693"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:10.105724"], ["name", "User1"], ["updated_at", "2014-04-12 20:52:10.105724"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.197614"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:52:10.197614"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:10.281234"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.281234"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:52:10 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.324839"], ["name", "Admin"], ["updated_at", "2014-04-12 20:52:10.324839"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:52:10.328469"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:52:10.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:52:10.328469"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 14ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.351172"], ["name", "User2"], ["updated_at", "2014-04-12 20:52:10.351172"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.356272"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:52:10.356272"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.371094"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.371094"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.425836"], ["name", "User3"], ["updated_at", "2014-04-12 20:52:10.425836"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.429984"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:52:10.429984"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.444263"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.444263"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (16.1ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.6ms)
Completed 200 OK in 182ms (Views: 178.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.667661"], ["name", "User4"], ["updated_at", "2014-04-12 20:52:10.667661"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.671602"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:52:10.671602"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.686984"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.686984"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (7.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.748746"], ["name", "User5"], ["updated_at", "2014-04-12 20:52:10.748746"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.752770"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:52:10.752770"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.767363"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.767363"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:52:10.796763"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.818128"], ["name", "User6"], ["updated_at", "2014-04-12 20:52:10.818128"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.822124"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:52:10.822124"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:10.837185"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.837185"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:10.893607"], ["name", "User7"], ["updated_at", "2014-04-12 20:52:10.893607"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:52:10.897658"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:52:10.897658"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:10.956016"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:10.956016"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:11.002416"], ["name", "User8"], ["updated_at", "2014-04-12 20:52:11.002416"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.006661"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:52:11.006661"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:11.020748"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.020748"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 0.6ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.9ms)
[1m[35mOdania::Site Load (0.3ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:11.326595"], ["name", "User9"], ["updated_at", "2014-04-12 20:52:11.326595"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.330584"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:52:11.330584"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.341594"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.341594"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.420111"], ["name", "User10"], ["updated_at", "2014-04-12 20:52:11.420111"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.424193"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:52:11.424193"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 17ms (ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.473890"], ["name", "User11"], ["updated_at", "2014-04-12 20:52:11.473890"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.478981"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:52:11.478981"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:11.490573"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.490573"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:11.537705"], ["name", "User12"], ["updated_at", "2014-04-12 20:52:11.537705"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.542720"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:52:11.542720"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.554281"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.554281"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.6ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (11.1ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 27ms (Views: 22.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.625874"], ["name", "User13"], ["updated_at", "2014-04-12 20:52:11.625874"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.629833"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:52:11.629833"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:11.642119"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.642119"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (8.6ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:11.705267"], ["name", "User14"], ["updated_at", "2014-04-12 20:52:11.705267"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.709352"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:52:11.709352"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.720673"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.720673"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:11.773535"], ["name", "User15"], ["updated_at", "2014-04-12 20:52:11.773535"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.777458"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:52:11.777458"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.788990"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.788990"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.5ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 63ms (Views: 59.5ms | ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.894630"], ["name", "User16"], ["updated_at", "2014-04-12 20:52:11.894630"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.899208"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:52:11.899208"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:11.911337"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.911337"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:11.956615"], ["name", "User17"], ["updated_at", "2014-04-12 20:52:11.956615"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:52:11.960727"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:52:11.960727"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:11.972022"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:11.972022"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.033093"], ["name", "User18"], ["updated_at", "2014-04-12 20:52:12.033093"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.037229"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:52:12.037229"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.048948"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.048948"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:52:12.079931"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:52:12.079931"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.101763"], ["name", "User19"], ["updated_at", "2014-04-12 20:52:12.101763"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.106028"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:52:12.106028"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.118724"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.118724"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.165708"], ["name", "User20"], ["updated_at", "2014-04-12 20:52:12.165708"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.169778"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:52:12.169778"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.182176"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.182176"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.245634"], ["name", "User21"], ["updated_at", "2014-04-12 20:52:12.245634"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.249868"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:52:12.249868"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:12.261894"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.261894"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (6.3ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.4ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (48.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 66ms (Views: 61.2ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.368143"], ["name", "User22"], ["updated_at", "2014-04-12 20:52:12.368143"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.373319"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:52:12.373319"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:12.384792"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.384792"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:52:12.413527"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.432875"], ["name", "User23"], ["updated_at", "2014-04-12 20:52:12.432875"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.437891"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:52:12.437891"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.449533"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.449533"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 12.1ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.508197"], ["name", "User24"], ["updated_at", "2014-04-12 20:52:12.508197"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.512237"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:52:12.512237"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:12.523657"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.523657"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.572144"], ["name", "User25"], ["updated_at", "2014-04-12 20:52:12.572144"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.576211"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:52:12.576211"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.587662"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:12.587662"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.647804"], ["name", "User26"], ["updated_at", "2014-04-12 20:52:12.647804"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.651750"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:52:12.651750"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.693150"], ["name", "User27"], ["updated_at", "2014-04-12 20:52:12.693150"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.697187"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:52:12.697187"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.732850"], ["name", "User28"], ["updated_at", "2014-04-12 20:52:12.732850"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.736863"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:52:12.736863"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (13.2ms)
[1m[35mOdania::Site Load (1.6ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 75ms (Views: 66.4ms | ActiveRecord: 2.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.841410"], ["name", "User29"], ["updated_at", "2014-04-12 20:52:12.841410"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.845553"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:52:12.845553"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (10.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.900697"], ["name", "User30"], ["updated_at", "2014-04-12 20:52:12.900697"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.904923"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:52:12.904923"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (9.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 17.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:12.955099"], ["name", "User31"], ["updated_at", "2014-04-12 20:52:12.955099"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:52:12.959125"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:52:12.959125"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:12.997840"], ["name", "User32"], ["updated_at", "2014-04-12 20:52:12.997840"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.002251"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:52:13.002251"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.049367"], ["name", "User33"], ["updated_at", "2014-04-12 20:52:13.049367"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.053669"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:52:13.053669"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.087961"], ["name", "User34"], ["updated_at", "2014-04-12 20:52:13.087961"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.092039"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:52:13.092039"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.139928"], ["name", "User35"], ["updated_at", "2014-04-12 20:52:13.139928"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.144037"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:52:13.144037"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.178221"], ["name", "User36"], ["updated_at", "2014-04-12 20:52:13.178221"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.182516"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:52:13.182516"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.193822"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.193822"]]
[1m[35m (2.9ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.277849"], ["name", "User37"], ["updated_at", "2014-04-12 20:52:13.277849"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.282526"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:52:13.282526"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:13.293990"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.293990"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.327361"], ["name", "User38"], ["updated_at", "2014-04-12 20:52:13.327361"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.331566"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:52:13.331566"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.342885"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.342885"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 8ms (Views: 3.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.384185"], ["name", "User39"], ["updated_at", "2014-04-12 20:52:13.384185"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.388331"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:52:13.388331"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:13.399742"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.399742"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.411540"], ["name", "User40"], ["updated_at", "2014-04-12 20:52:13.411540"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.415465"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:52:13.415465"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.428786"], ["name", "User41"], ["updated_at", "2014-04-12 20:52:13.428786"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.432777"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:52:13.432777"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.6ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.7ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.5ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.6ms)
Completed 200 OK in 96ms (Views: 88.2ms | ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.566841"], ["name", "User42"], ["updated_at", "2014-04-12 20:52:13.566841"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.571077"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:52:13.571077"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:52:13.582663"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.582663"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.594101"], ["name", "User43"], ["updated_at", "2014-04-12 20:52:13.594101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.598192"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:52:13.598192"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.611845"], ["name", "User44"], ["updated_at", "2014-04-12 20:52:13.611845"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.615877"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:52:13.615877"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (2.2ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (4.0ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 14.5ms | ActiveRecord: 1.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.674783"], ["name", "User45"], ["updated_at", "2014-04-12 20:52:13.674783"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.679012"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:52:13.679012"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.690598"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.690598"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.702034"], ["name", "User46"], ["updated_at", "2014-04-12 20:52:13.702034"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.706167"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:52:13.706167"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.719200"], ["name", "User47"], ["updated_at", "2014-04-12 20:52:13.719200"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.723468"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:52:13.723468"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (6.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (9.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.3ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 30ms (Views: 21.3ms | ActiveRecord: 1.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:52:13.788770"], ["name", "User48"], ["updated_at", "2014-04-12 20:52:13.788770"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.792923"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:52:13.792923"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.804328"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:52:13.804328"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.815879"], ["name", "User49"], ["updated_at", "2014-04-12 20:52:13.815879"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.819983"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:52:13.819983"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:52:13.833025"], ["name", "User50"], ["updated_at", "2014-04-12 20:52:13.833025"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:52:13.836927"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:52:13.836927"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ?[0m [["site_id", 1]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = 2 ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 400 Bad Request in 365811ms (Views: 3.0ms | ActiveRecord: 2.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:19.688289"], ["name", "User51"], ["updated_at", "2014-04-12 20:58:19.688289"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:58:19.692947"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:58:19.692947"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:19.705460"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:19.705460"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (1.2ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:19.719884"], ["name", "User52"], ["updated_at", "2014-04-12 20:58:19.719884"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:58:19.724919"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:58:19.724919"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:19.738393"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.0ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.0ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.8ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.8ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 12.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:19.788529"], ["name", "User53"], ["updated_at", "2014-04-12 20:58:19.788529"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:58:19.792705"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:58:19.792705"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:19.804501"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:19.804501"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:19.817222"], ["name", "User54"], ["updated_at", "2014-04-12 20:58:19.817222"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:58:19.821656"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:58:19.821656"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2[0m [["menu_item_id", 2], ["updated_at", "2014-04-12 20:58:19.840614"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (5.3ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.8ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 15.8ms | ActiveRecord: 1.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:19.895707"], ["name", "User55"], ["updated_at", "2014-04-12 20:58:19.895707"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:58:19.899924"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:58:19.899924"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:19.912161"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:19.912161"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:19.923371"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1 [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:19.933864"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "ABC-Tag"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1 [["tag_id", 2]]
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.4ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 29ms (Views: 23.0ms | ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:19.999359"], ["name", "User56"], ["updated_at", "2014-04-12 20:58:19.999359"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:58:20.005334"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:58:20.005334"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:20.018495"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:20.018495"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (1.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m [["site_id", 1]]
Completed 404 Not Found in 4ms (Views: 1.5ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:20.098406"], ["name", "User57"], ["updated_at", "2014-04-12 20:58:20.098406"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:58:20.103776"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:58:20.103776"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:20.115882"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:20.115882"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::TagsController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.6ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_current_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:20.254594"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:20.254594"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:20.349009"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:20.349009"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.6ms)
Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:20.421873"], ["name", "User58"], ["updated_at", "2014-04-12 20:58:20.421873"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:58:20.426177"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:58:20.426177"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:20.438698"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:20.438698"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:20.465193"], ["name", "User59"], ["updated_at", "2014-04-12 20:58:20.465193"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:58:20.469662"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:58:20.469662"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:20.481527"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:20.481527"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:58:20 +0200
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:20.506311"], ["name", "User60"], ["updated_at", "2014-04-12 20:58:20.506311"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:58:20.561478"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:20.509231"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:20.561478"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T2"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:20.599574"], ["name", "User61"], ["updated_at", "2014-04-12 20:58:20.599574"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:58:20.605184"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:20.601760"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:20.605184"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:58:20.659853"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T8"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:20.692693"], ["name", "User62"], ["updated_at", "2014-04-12 20:58:20.692693"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:58:20.697911"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:20.694809"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:20.697911"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:58:20.728424"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[35m (0.1ms)[0m rollback transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.5ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:27.616570"], ["name", "User1"], ["updated_at", "2014-04-12 20:58:27.616570"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:58:27.711608"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:58:27.711608"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:27.794443"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:27.794443"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:58:27 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.2ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:27.837495"], ["name", "Admin"], ["updated_at", "2014-04-12 20:58:27.837495"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:58:27.841564"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:58:27.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:58:27.841564"], ["user_id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 15ms (ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:27.865492"], ["name", "User2"], ["updated_at", "2014-04-12 20:58:27.865492"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:58:27.869527"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:58:27.869527"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:27.885126"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:27.885126"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:27.937558"], ["name", "User3"], ["updated_at", "2014-04-12 20:58:27.937558"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:58:27.942718"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:58:27.942718"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:27.957020"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:27.957020"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (16.5ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.6ms)
Completed 200 OK in 189ms (Views: 185.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.188761"], ["name", "User4"], ["updated_at", "2014-04-12 20:58:28.188761"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.192716"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:58:28.192716"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (1.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.208065"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:28.208065"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (7.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 16.9ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.271235"], ["name", "User5"], ["updated_at", "2014-04-12 20:58:28.271235"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.275703"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:58:28.275703"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.294115"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:28.294115"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:58:28.329060"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.349595"], ["name", "User6"], ["updated_at", "2014-04-12 20:58:28.349595"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.353640"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:58:28.353640"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.368927"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:28.368927"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 10.3ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:28.429432"], ["name", "User7"], ["updated_at", "2014-04-12 20:58:28.429432"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.433561"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:58:28.433561"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.4ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:28.495008"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:28.495008"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:28.543563"], ["name", "User8"], ["updated_at", "2014-04-12 20:58:28.543563"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.549363"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:58:28.549363"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:28.568537"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:28.568537"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.2ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (3.7ms)
[1m[36mOdania::Site Load (1.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 13.8ms | ActiveRecord: 1.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.9ms)
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 9ms (ActiveRecord: 1.7ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 15ms (Views: 9.7ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:28.883510"], ["name", "User9"], ["updated_at", "2014-04-12 20:58:28.883510"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.887731"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:58:28.887731"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.900012"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:28.900012"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:28.978762"], ["name", "User10"], ["updated_at", "2014-04-12 20:58:28.978762"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:58:28.984116"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:58:28.984116"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 17ms (ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.039112"], ["name", "User11"], ["updated_at", "2014-04-12 20:58:29.039112"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.043307"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:58:29.043307"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:29.054853"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.054853"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.105626"], ["name", "User12"], ["updated_at", "2014-04-12 20:58:29.105626"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.109824"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:58:29.109824"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.121466"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.121466"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.6ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (11.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 26ms (Views: 21.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.191645"], ["name", "User13"], ["updated_at", "2014-04-12 20:58:29.191645"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.195730"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:58:29.195730"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:29.208246"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.208246"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (2.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (9.4ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.272663"], ["name", "User14"], ["updated_at", "2014-04-12 20:58:29.272663"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.276611"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:58:29.276611"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.289548"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.289548"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (1.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 12ms (ActiveRecord: 1.5ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.343670"], ["name", "User15"], ["updated_at", "2014-04-12 20:58:29.343670"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.348859"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:58:29.348859"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.360249"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.360249"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.5ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 65ms (Views: 60.7ms | ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.465881"], ["name", "User16"], ["updated_at", "2014-04-12 20:58:29.465881"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.470342"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:58:29.470342"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:29.483419"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.483419"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.529253"], ["name", "User17"], ["updated_at", "2014-04-12 20:58:29.529253"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.533332"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:58:29.533332"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.546142"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.546142"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (2.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (3.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.610719"], ["name", "User18"], ["updated_at", "2014-04-12 20:58:29.610719"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.614720"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:58:29.614720"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.626341"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.626341"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:58:29.657136"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:58:29.657136"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.678549"], ["name", "User19"], ["updated_at", "2014-04-12 20:58:29.678549"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.683139"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:58:29.683139"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.694728"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.694728"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:29.743329"], ["name", "User20"], ["updated_at", "2014-04-12 20:58:29.743329"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.747776"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:58:29.747776"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.759238"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.759238"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (7.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.823341"], ["name", "User21"], ["updated_at", "2014-04-12 20:58:29.823341"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.828443"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:58:29.828443"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:29.840084"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.840084"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (5.9ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.6ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (51.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 68ms (Views: 62.8ms | ActiveRecord: 1.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:29.953168"], ["name", "User22"], ["updated_at", "2014-04-12 20:58:29.953168"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:58:29.958299"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:58:29.958299"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:29.969887"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:29.969887"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:58:30.002253"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.023350"], ["name", "User23"], ["updated_at", "2014-04-12 20:58:30.023350"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.027753"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:58:30.027753"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.040120"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:30.040120"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (5.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 25ms (Views: 20.4ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.110003"], ["name", "User24"], ["updated_at", "2014-04-12 20:58:30.110003"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.114120"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:58:30.114120"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:30.126480"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:30.126480"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.181200"], ["name", "User25"], ["updated_at", "2014-04-12 20:58:30.181200"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.185446"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:58:30.185446"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.2ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.197251"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:30.197251"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 17ms (Views: 11.3ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.257696"], ["name", "User26"], ["updated_at", "2014-04-12 20:58:30.257696"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.261892"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:58:30.261892"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.304760"], ["name", "User27"], ["updated_at", "2014-04-12 20:58:30.304760"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.308889"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:58:30.308889"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.348155"], ["name", "User28"], ["updated_at", "2014-04-12 20:58:30.348155"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.352463"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:58:30.352463"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (13.2ms)
[1m[35mOdania::Site Load (1.6ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (48.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 77ms (Views: 67.6ms | ActiveRecord: 2.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.459904"], ["name", "User29"], ["updated_at", "2014-04-12 20:58:30.459904"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.464192"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:58:30.464192"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (9.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 24ms (Views: 18.7ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.517853"], ["name", "User30"], ["updated_at", "2014-04-12 20:58:30.517853"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.522111"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:58:30.522111"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (9.2ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 22ms (Views: 17.1ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.575978"], ["name", "User31"], ["updated_at", "2014-04-12 20:58:30.575978"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.580226"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:58:30.580226"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.619947"], ["name", "User32"], ["updated_at", "2014-04-12 20:58:30.619947"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.624288"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:58:30.624288"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 18ms (Views: 13.2ms | ActiveRecord: 0.8ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.671450"], ["name", "User33"], ["updated_at", "2014-04-12 20:58:30.671450"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.675956"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:58:30.675956"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.712198"], ["name", "User34"], ["updated_at", "2014-04-12 20:58:30.712198"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.716698"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:58:30.716698"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 16ms (Views: 10.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.766032"], ["name", "User35"], ["updated_at", "2014-04-12 20:58:30.766032"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.770114"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:58:30.770114"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.804215"], ["name", "User36"], ["updated_at", "2014-04-12 20:58:30.804215"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.808325"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:58:30.808325"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.819794"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:30.819794"]]
[1m[35m (44.8ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.904514"], ["name", "User37"], ["updated_at", "2014-04-12 20:58:30.904514"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.909319"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:58:30.909319"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:30.922331"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:30.922331"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:30.954637"], ["name", "User38"], ["updated_at", "2014-04-12 20:58:30.954637"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:58:30.958830"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:58:30.958830"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:30.970651"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:30.970651"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 9ms (Views: 4.1ms | ActiveRecord: 0.3ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.017802"], ["name", "User39"], ["updated_at", "2014-04-12 20:58:31.017802"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.021979"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:58:31.021979"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:31.033667"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:31.033667"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:31.045736"], ["name", "User40"], ["updated_at", "2014-04-12 20:58:31.045736"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.050136"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:58:31.050136"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:31.065949"], ["name", "User41"], ["updated_at", "2014-04-12 20:58:31.065949"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.070029"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:58:31.070029"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.2ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.5ms)
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.6ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (8.7ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.7ms)
Completed 200 OK in 96ms (Views: 87.8ms | ActiveRecord: 1.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.203176"], ["name", "User42"], ["updated_at", "2014-04-12 20:58:31.203176"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.207322"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:58:31.207322"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:31.218807"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:31.218807"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:31.230559"], ["name", "User43"], ["updated_at", "2014-04-12 20:58:31.230559"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.234673"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:58:31.234673"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:31.248286"], ["name", "User44"], ["updated_at", "2014-04-12 20:58:31.248286"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.252640"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:58:31.252640"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (2.3ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."tag_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (4.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.6ms)
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 14.5ms | ActiveRecord: 1.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:31.312738"], ["name", "User45"], ["updated_at", "2014-04-12 20:58:31.312738"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.317169"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:58:31.317169"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.328694"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:31.328694"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.340235"], ["name", "User46"], ["updated_at", "2014-04-12 20:58:31.340235"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.345932"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:58:31.345932"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.361853"], ["name", "User47"], ["updated_at", "2014-04-12 20:58:31.361853"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.366644"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:58:31.366644"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.2ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.2ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (7.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (11.7ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 33ms (Views: 22.6ms | ActiveRecord: 1.6ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:31.438372"], ["name", "User48"], ["updated_at", "2014-04-12 20:58:31.438372"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.442804"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:58:31.442804"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.454363"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:31.454363"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.467716"], ["name", "User49"], ["updated_at", "2014-04-12 20:58:31.467716"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.471823"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:58:31.471823"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:31.484999"], ["name", "User50"], ["updated_at", "2014-04-12 20:58:31.484999"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:58:31.489055"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:58:31.489055"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."tag_id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.2ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (4.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (5.6ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (6.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.6ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 5596ms (Views: 17.4ms | ActiveRecord: 1.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.120242"], ["name", "User51"], ["updated_at", "2014-04-12 20:58:37.120242"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.124842"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:58:37.124842"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:37.137777"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.137777"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.151690"], ["name", "User52"], ["updated_at", "2014-04-12 20:58:37.151690"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.156168"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:58:37.156168"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:37.169031"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 20ms (Views: 12.3ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.217700"], ["name", "User53"], ["updated_at", "2014-04-12 20:58:37.217700"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.222142"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:58:37.222142"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.233971"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.233971"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.245861"], ["name", "User54"], ["updated_at", "2014-04-12 20:58:37.245861"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.250021"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:58:37.250021"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-12 20:58:37.269183"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (4.8ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (5.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (6.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 23ms (Views: 15.0ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.324928"], ["name", "User55"], ["updated_at", "2014-04-12 20:58:37.324928"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.329268"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:58:37.329268"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:37.341419"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.341419"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:37.352533"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:37.363616"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.2ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 2]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (7.5ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 26ms (Views: 18.0ms | ActiveRecord: 1.4ms)
[1m[36m (2.7ms)[0m [1mrollback transaction[0m
[1m[35m (0.4ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.470392"], ["name", "User56"], ["updated_at", "2014-04-12 20:58:37.470392"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.474635"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:58:37.474635"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.487703"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.487703"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.519248"], ["name", "User57"], ["updated_at", "2014-04-12 20:58:37.519248"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.523715"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:58:37.523715"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.536056"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.536056"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (4.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (10.2ms)
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (2.0ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 1.0ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:37.675941"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.675941"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.772106"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.772106"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.3ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.5ms)
Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.842347"], ["name", "User58"], ["updated_at", "2014-04-12 20:58:37.842347"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.846509"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:58:37.846509"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.858026"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.858026"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.883818"], ["name", "User59"], ["updated_at", "2014-04-12 20:58:37.883818"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:58:37.888055"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:58:37.888055"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:37.899880"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:37.899880"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:58:37 +0200
[1m[36m (2.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:37.970140"], ["name", "User60"], ["updated_at", "2014-04-12 20:58:37.970140"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:58:37.976571"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:37.973138"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:37.976571"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:38.011177"], ["name", "User61"], ["updated_at", "2014-04-12 20:58:38.011177"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:58:38.017092"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:38.013553"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:38.017092"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:58:38.043050"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:38.077103"], ["name", "User62"], ["updated_at", "2014-04-12 20:58:38.077103"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:58:38.083239"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:38.079527"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:38.083239"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:58:38.115918"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_create_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language1' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short1"], ["name", "Language1"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:44.425118"], ["name", "User1"], ["updated_at", "2014-04-12 20:58:44.425118"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 1 #T1"], ["body_filtered", "Site Long Text 1 T1"], ["body_short", "Site Short Text 1"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.509869"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 1"], ["updated_at", "2014-04-12 20:58:44.509869"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language2' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short2' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short2"], ["name", "Language2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:44.572598"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.572598"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title1"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title1"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title2"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title2"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title3"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title4"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_contents"
Processing by Admin::Odania::ContentsController#create as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-04-12 22:58:44 +0200", "language_id"=>"3", "site_id"=>"1"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.1ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."name" = 'Admin' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.595982"], ["name", "Admin"], ["updated_at", "2014-04-12 20:58:44.595982"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["created_at", "2014-04-12 20:58:44.597866"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-04-12 20:58:44.000000"], ["site_id", 1], ["title", "Test Title"], ["updated_at", "2014-04-12 20:58:44.597866"], ["user_id", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_destroy_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language3' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short3"], ["name", "Language3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.609456"], ["name", "User2"], ["updated_at", "2014-04-12 20:58:44.609456"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 2 #T1"], ["body_filtered", "Site Long Text 2 T1"], ["body_short", "Site Short Text 2"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.611702"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 2"], ["updated_at", "2014-04-12 20:58:44.611702"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language4' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short4' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short4"], ["name", "Language4"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.618343"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.618343"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title5"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title5"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title6"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title7"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title7"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title8"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
Processing by Admin::Odania::ContentsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 1], ["ref_type", "Odania::Content"]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_contents" WHERE "odania_contents"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_contents"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_edit_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language5' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short5"], ["name", "Language5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.645133"], ["name", "User3"], ["updated_at", "2014-04-12 20:58:44.645133"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 3 #T1"], ["body_filtered", "Site Long Text 3 T1"], ["body_short", "Site Short Text 3"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.647373"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 3"], ["updated_at", "2014-04-12 20:58:44.647373"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language6' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short6' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short6"], ["name", "Language6"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.653842"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.653842"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title9"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title9"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title10"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title11"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title11"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title12"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (10.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (2.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.4ms)
Completed 200 OK in 150ms (Views: 148.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_render_new_content
---------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language7' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short7' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short7"], ["name", "Language7"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.825050"], ["name", "User4"], ["updated_at", "2014-04-12 20:58:44.825050"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 4 #T1"], ["body_filtered", "Site Long Text 4 T1"], ["body_short", "Site Short Text 4"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.827184"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 4"], ["updated_at", "2014-04-12 20:58:44.827184"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language8' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short8' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short8"], ["name", "Language8"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.834096"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.834096"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title13"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title14"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title14"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title15"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title16"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title16"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_form.html.erb (3.7ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_should_update_content
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language9' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short9' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short9"], ["name", "Language9"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.866468"], ["name", "User5"], ["updated_at", "2014-04-12 20:58:44.866468"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 5 #T1"], ["body_filtered", "Site Long Text 5 T1"], ["body_short", "Site Short Text 5"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.868774"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 5"], ["updated_at", "2014-04-12 20:58:44.868774"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language10' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short10' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short10"], ["name", "Language10"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.874898"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.874898"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title17"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title17"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title18"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title18"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title19"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title20"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#update as HTML
Parameters: {"odania_content"=>{"title"=>"Test Title", "body"=>"ContentBody", "body_short"=>"Short", "published_at"=>"2014-02-12 21:54:11 UTC", "language_id"=>"2"}, "id"=>"1", "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "body_short" = ?, "title" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "ContentBody"], ["body_filtered", "ContentBody"], ["body_short", "Short"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:58:44.890466"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/contents
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_get_index
-----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language11' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short11' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short11"], ["name", "Language11"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.901113"], ["name", "User6"], ["updated_at", "2014-04-12 20:58:44.901113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 6 #T1"], ["body_filtered", "Site Long Text 6 T1"], ["body_short", "Site Short Text 6"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.903721"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 6"], ["updated_at", "2014-04-12 20:58:44.903721"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language12' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short12' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short12"], ["name", "Language12"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:44.910942"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.910942"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title21"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title21"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title22"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title23"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title24"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::ContentsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY title ASC [["site_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_redirect_on_invalid_id
------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.3ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language13' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short13' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short13"], ["name", "Language13"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:44.941841"], ["name", "User7"], ["updated_at", "2014-04-12 20:58:44.941841"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 7 #T1"], ["body_filtered", "Site Long Text 7 T1"], ["body_short", "Site Short Text 7"], ["clicks", 1], ["created_at", "2014-04-12 20:58:44.944440"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 7"], ["updated_at", "2014-04-12 20:58:44.944440"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language14' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short14' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short14"], ["name", "Language14"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:44.951269"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:44.951269"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title25"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title25"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.7ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title26"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title27"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title28"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title28"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 0 ORDER BY "odania_contents"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus/1/contents
Filter chain halted as :set_admin_content rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------------
Admin::Odania::ContentsControllerTest: test_test_should_show_content
--------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language15' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short15' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short15"], ["name", "Language15"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.017578"], ["name", "User8"], ["updated_at", "2014-04-12 20:58:45.017578"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 8 #T1"], ["body_filtered", "Site Long Text 8 T1"], ["body_short", "Site Short Text 8"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.019751"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 8"], ["updated_at", "2014-04-12 20:58:45.019751"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language16' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short16' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short16"], ["name", "Language16"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.026092"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.026092"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title29"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title30"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title30"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title31"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title31"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title32"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::ContentsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language17' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short17' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short17"], ["name", "Language17"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#create as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Engilish' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'en' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_languages"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language18' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short18' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short18"], ["name", "Language18"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
Processing by Admin::Odania::LanguagesController#destroy as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_languages" WHERE "odania_languages"."id" = ? [["id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_languages"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language19' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short19' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short19"], ["name", "Language19"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#edit as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (2.0ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language20' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short20' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short20"], ["name", "Language20"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#new as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/languages/_form.html.erb (1.4ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language21' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short21' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short21"], ["name", "Language21"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::LanguagesController#update as HTML
Parameters: {"odania_language"=>{"name"=>"Engilish", "iso_639_1"=>"en"}, "id"=>"2"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'Engilish' AND "odania_languages"."id" != 2) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'en' AND "odania_languages"."id" != 2) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_languages" SET "iso_639_1" = ?, "name" = ? WHERE "odania_languages"."id" = 2[0m [["iso_639_1", "en"], ["name", "Engilish"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/languages
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language22' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short22' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short22"], ["name", "Language22"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages"
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language23' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short23' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short23"], ["name", "Language23"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 0 ORDER BY "odania_languages"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/languages
Filter chain halted as :set_admin_language rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::LanguagesControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language24' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short24' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short24"], ["name", "Language24"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::LanguagesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = 2 ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_create_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language25' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short25' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short25"], ["name", "Language25"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.172656"], ["name", "User9"], ["updated_at", "2014-04-12 20:58:45.172656"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 9 #T1"], ["body_filtered", "Site Long Text 9 T1"], ["body_short", "Site Short Text 9"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.174959"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 9"], ["updated_at", "2014-04-12 20:58:45.174959"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.180291"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.180291"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title33"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title34"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title35"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title36"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain1.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 1"], ["host", "www.domain1.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 1"], ["tracking_code", "TRACKING CODE 1"]]
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language26' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short26' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short26"], ["name", "Language26"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.239812"], ["name", "User10"], ["updated_at", "2014-04-12 20:58:45.239812"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 10 #T1"], ["body_filtered", "Site Long Text 10 T1"], ["body_short", "Site Short Text 10"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.242172"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 2], ["title", "Site 10"], ["updated_at", "2014-04-12 20:58:45.242172"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 2]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
Processing by Admin::Odania::MenuItemsController#create as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"CONTENT"}, "target_data"=>{"id"=>"2"}, "menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" IS NULL[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 2 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "test-title"], ["menu_id", 1], ["position", 5], ["published", "t"], ["target_data", "--- !ruby/hash:ActionController::Parameters\nid: '2'\n"], ["target_type", "CONTENT"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menu_items"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_destroy_content
-------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language27' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short27' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short27"], ["name", "Language27"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.267190"], ["name", "User11"], ["updated_at", "2014-04-12 20:58:45.267190"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 11 #T1"], ["body_filtered", "Site Long Text 11 T1"], ["body_short", "Site Short Text 11"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.269378"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 11"], ["updated_at", "2014-04-12 20:58:45.269378"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.274906"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.274906"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title37"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title38"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title39"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title39"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title40"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#destroy as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus/1/menu_items
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menu_items"
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_edit_content
-----------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language28' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short28' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short28"], ["name", "Language28"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.298582"], ["name", "User12"], ["updated_at", "2014-04-12 20:58:45.298582"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 12 #T1"], ["body_filtered", "Site Long Text 12 T1"], ["body_short", "Site Short Text 12"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.301000"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 12"], ["updated_at", "2014-04-12 20:58:45.301000"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.306610"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.306610"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title41"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title42"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title42"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title43"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title43"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title44"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#edit as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_choose_url.html.erb (0.4ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (6.6ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_render_new_content
----------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language29' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short29' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short29"], ["name", "Language29"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.341846"], ["name", "User13"], ["updated_at", "2014-04-12 20:58:45.341846"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 13 #T1"], ["body_filtered", "Site Long Text 13 T1"], ["body_short", "Site Short Text 13"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.344228"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 13"], ["updated_at", "2014-04-12 20:58:45.344228"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.350135"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.350135"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title45"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title46"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title47"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title47"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title48"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#new as HTML
Parameters: {"menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = 1 AND "odania_contents"."language_id" = 1 ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/contents/_choose_content.html.erb (1.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menu_items/_form.html.erb (4.9ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_should_update_content
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language30' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short30' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short30"], ["name", "Language30"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.381267"], ["name", "User14"], ["updated_at", "2014-04-12 20:58:45.381267"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 14 #T1"], ["body_filtered", "Site Long Text 14 T1"], ["body_short", "Site Short Text 14"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.383538"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 14"], ["updated_at", "2014-04-12 20:58:45.383538"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.389331"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.389331"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title49"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title49"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title50"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title50"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title51"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title52"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#update as HTML
Parameters: {"odania_menu_item"=>{"title"=>"Test Title", "published"=>true, "target_type"=>"URL"}, "target_data"=>{"url"=>"http://www.perfect-reach.com"}, "id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "full_path" = ?, "position" = ?, "target_data" = ?, "title" = ? WHERE "odania_menu_items"."id" = 1 [["full_path", "test-title"], ["position", 5], ["target_data", "--- !ruby/hash:ActionController::Parameters\nurl: http://www.perfect-reach.com\n"], ["title", "Test Title"]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_get_index
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.3ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language31' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short31' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short31"], ["name", "Language31"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.413521"], ["name", "User15"], ["updated_at", "2014-04-12 20:58:45.413521"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 15 #T1"], ["body_filtered", "Site Long Text 15 T1"], ["body_short", "Site Short Text 15"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.415626"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 15"], ["updated_at", "2014-04-12 20:58:45.415626"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.421225"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.421225"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title53"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title53"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title54"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title55"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title55"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title56"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenuItemsController#index as HTML
Parameters: {"menu_id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY parent_id ASC[0m [["menu_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_redirect_on_invalid_id
-------------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language32' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short32' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short32"], ["name", "Language32"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.495274"], ["name", "User16"], ["updated_at", "2014-04-12 20:58:45.495274"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 16 #T1"], ["body_filtered", "Site Long Text 16 T1"], ["body_short", "Site Short Text 16"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.497453"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 16"], ["updated_at", "2014-04-12 20:58:45.497453"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.502841"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.502841"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title57"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title57"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title58"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title59"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title59"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title60"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title60"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 0 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
Redirected to http://test.host/admin/odania/menus/1/menu_items
Filter chain halted as :set_odania_menu_item rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
Admin::Odania::MenuItemsControllerTest: test_test_should_show_content
---------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language33' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short33' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short33"], ["name", "Language33"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.524324"], ["name", "User17"], ["updated_at", "2014-04-12 20:58:45.524324"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 17 #T1"], ["body_filtered", "Site Long Text 17 T1"], ["body_short", "Site Short Text 17"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.526556"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 17"], ["updated_at", "2014-04-12 20:58:45.526556"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.532041"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.532041"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title61"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title62"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title62"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title63"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title63"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title64"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Processing by Admin::Odania::MenuItemsController#show as HTML
Parameters: {"id"=>"1", "menu_id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."id" = 1 ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_create_content
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language34' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short34' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short34"], ["name", "Language34"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.564921"], ["name", "User18"], ["updated_at", "2014-04-12 20:58:45.564921"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 18 #T1"], ["body_filtered", "Site Long Text 18 T1"], ["body_short", "Site Short Text 18"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.567278"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 18"], ["updated_at", "2014-04-12 20:58:45.567278"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.573891"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.573891"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title65"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title65"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.6ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title66"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title66"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title67"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title67"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title68"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#create as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.2ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" IS NULL AND "odania_menus"."language_id" IS NULL) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "published", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.595333"], ["published", "t"], ["title", "Test Title"], ["updated_at", "2014-04-12 20:58:45.595333"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_destroy_content
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language35' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short35' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short35"], ["name", "Language35"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.607391"], ["name", "User19"], ["updated_at", "2014-04-12 20:58:45.607391"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 19 #T1"], ["body_filtered", "Site Long Text 19 T1"], ["body_short", "Site Short Text 19"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.609675"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 19"], ["updated_at", "2014-04-12 20:58:45.609675"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.615434"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.615434"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title69"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title70"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title70"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title71"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title71"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title72"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_menus"[0m
Processing by Admin::Odania::MenusController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_menus" WHERE "odania_menus"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_menus"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_edit_content
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language36' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short36' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short36"], ["name", "Language36"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.640179"], ["name", "User20"], ["updated_at", "2014-04-12 20:58:45.640179"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 20 #T1"], ["body_filtered", "Site Long Text 20 T1"], ["body_short", "Site Short Text 20"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.642567"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 20"], ["updated_at", "2014-04-12 20:58:45.642567"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.647536"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.647536"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title73"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title74"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title75"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title76"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (3.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_render_new_content
------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language37' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short37' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short37"], ["name", "Language37"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.676919"], ["name", "User21"], ["updated_at", "2014-04-12 20:58:45.676919"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 21 #T1"], ["body_filtered", "Site Long Text 21 T1"], ["body_short", "Site Short Text 21"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.679079"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 21"], ["updated_at", "2014-04-12 20:58:45.679079"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.684174"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.684174"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title77"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title77"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title78"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title79"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title79"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title80"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title80"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/menus/_form.html.erb (2.8ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_should_update_content
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language38' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short38' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short38"], ["name", "Language38"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.755640"], ["name", "User22"], ["updated_at", "2014-04-12 20:58:45.755640"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 22 #T1"], ["body_filtered", "Site Long Text 22 T1"], ["body_short", "Site Short Text 22"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.757717"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 22"], ["updated_at", "2014-04-12 20:58:45.757717"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.762680"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.762680"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title81"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title81"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title82"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title82"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title83"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title83"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title84"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title84"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#update as HTML
Parameters: {"odania_menu"=>{"title"=>"Test Title", "published"=>true}, "id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."id" != 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menus" SET "title" = ?, "updated_at" = ? WHERE "odania_menus"."id" = 1[0m [["title", "Test Title"], ["updated_at", "2014-04-12 20:58:45.775844"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/menus
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language39' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short39' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short39"], ["name", "Language39"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.784932"], ["name", "User23"], ["updated_at", "2014-04-12 20:58:45.784932"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 23 #T1"], ["body_filtered", "Site Long Text 23 T1"], ["body_short", "Site Short Text 23"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.787315"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 23"], ["updated_at", "2014-04-12 20:58:45.787315"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.792431"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.792431"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title85"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title85"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title86"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title86"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title87"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title87"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title88"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title88"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY title ASC[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language40' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short40' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short40"], ["name", "Language40"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.819098"], ["name", "User24"], ["updated_at", "2014-04-12 20:58:45.819098"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 24 #T1"], ["body_filtered", "Site Long Text 24 T1"], ["body_short", "Site Short Text 24"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.821220"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 24"], ["updated_at", "2014-04-12 20:58:45.821220"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:45.826371"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.826371"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title89"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title89"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title90"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title90"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title91"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title91"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title92"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title92"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 0 ORDER BY "odania_menus"."id" ASC LIMIT 1
Redirected to http://test.host/admin/odania/menus
Filter chain halted as :set_admin_menu rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------
Admin::Odania::MenusControllerTest: test_test_should_show_content
-----------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language41' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short41' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short41"], ["name", "Language41"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.846696"], ["name", "User25"], ["updated_at", "2014-04-12 20:58:45.846696"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 25 #T1"], ["body_filtered", "Site Long Text 25 T1"], ["body_short", "Site Short Text 25"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.849201"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 25"], ["updated_at", "2014-04-12 20:58:45.849201"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.854346"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:45.854346"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title93"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title93"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title94"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title94"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title95"], ["menu_id", 1], ["position", 3], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title95"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title96"], ["menu_id", 1], ["position", 4], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title96"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::MenusController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_create_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language42' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short42' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short42"], ["name", "Language42"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.883645"], ["name", "User26"], ["updated_at", "2014-04-12 20:58:45.883645"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 26 #T1"], ["body_filtered", "Site Long Text 26 T1"], ["body_short", "Site Short Text 26"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.885816"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 26"], ["updated_at", "2014-04-12 20:58:45.885816"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD", "default_language_id"=>"1"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "name", "template", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "description is here"], ["host", "www.test.de"], ["is_active", "t"], ["name", "Page1"], ["template", "ASDASD"], ["tracking_code", "TRACK"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_sites"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_destroy_site
------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language43' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short43' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short43"], ["name", "Language43"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.904106"], ["name", "User27"], ["updated_at", "2014-04-12 20:58:45.904106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 27 #T1"], ["body_filtered", "Site Long Text 27 T1"], ["body_short", "Site Short Text 27"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.906449"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 27"], ["updated_at", "2014-04-12 20:58:45.906449"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
Processing by Admin::Odania::SitesController#destroy as HTML
Parameters: {"id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m DELETE FROM "odania_sites" WHERE "odania_sites"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_sites"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_not_create_site_due_to_invalid_template
---------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language44' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short44' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short44"], ["name", "Language44"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:45.922736"], ["name", "User28"], ["updated_at", "2014-04-12 20:58:45.922736"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 28 #T1"], ["body_filtered", "Site Long Text 28 T1"], ["body_short", "Site Short Text 28"], ["clicks", 1], ["created_at", "2014-04-12 20:58:45.925165"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 28"], ["updated_at", "2014-04-12 20:58:45.925165"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#create as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here", "template"=>"ASDASD"}}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.test.de' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Page1' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (6.2ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_edit_site
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language45' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short45' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short45"], ["name", "Language45"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:45.998566"], ["name", "User29"], ["updated_at", "2014-04-12 20:58:45.998566"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 29 #T1"], ["body_filtered", "Site Long Text 29 T1"], ["body_short", "Site Short Text 29"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.000610"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 29"], ["updated_at", "2014-04-12 20:58:46.000610"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#edit as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.5ms)
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_render_new_site
---------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (1.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language46' LIMIT 1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short46' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short46"], ["name", "Language46"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.026881"], ["name", "User30"], ["updated_at", "2014-04-12 20:58:46.026881"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 30 #T1"], ["body_filtered", "Site Long Text 30 T1"], ["body_short", "Site Short Text 30"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.029118"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 30"], ["updated_at", "2014-04-12 20:58:46.029118"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#new as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" ORDER BY name ASC[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/sites/_form.html.erb (4.1ms)
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------
Admin::Odania::SitesControllerTest: test_should_update_site
-----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language47' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short47' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short47"], ["name", "Language47"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.052816"], ["name", "User31"], ["updated_at", "2014-04-12 20:58:46.052816"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 31 #T1"], ["body_filtered", "Site Long Text 31 T1"], ["body_short", "Site Short Text 31"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.055058"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 31"], ["updated_at", "2014-04-12 20:58:46.055058"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Admin::Odania::SitesController#update as HTML
Parameters: {"odania_site"=>{"name"=>"Page1", "host"=>"www.test.de", "is_active"=>true, "tracking_code"=>"TRACK", "description"=>"description is here"}, "id"=>"1"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."host" = 'www.test.de' AND "odania_sites"."id" != 1) LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE ("odania_sites"."name" = 'Page1' AND "odania_sites"."id" != 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_sites" SET "description" = ?, "host" = ?, "name" = ?, "tracking_code" = ? WHERE "odania_sites"."id" = 1 [["description", "description is here"], ["host", "www.test.de"], ["name", "Page1"], ["tracking_code", "TRACK"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/admin/odania/sites
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_get_index
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language48' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short48' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short48"], ["name", "Language48"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.072708"], ["name", "User32"], ["updated_at", "2014-04-12 20:58:46.072708"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 32 #T1"], ["body_filtered", "Site Long Text 32 T1"], ["body_short", "Site Short Text 32"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.075087"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 32"], ["updated_at", "2014-04-12 20:58:46.075087"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC[0m
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_redirect_on_invalid_id
---------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language49' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short49' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short49"], ["name", "Language49"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.099613"], ["name", "User33"], ["updated_at", "2014-04-12 20:58:46.099613"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 33 #T1"], ["body_filtered", "Site Long Text 33 T1"], ["body_short", "Site Short Text 33"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.101861"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 33"], ["updated_at", "2014-04-12 20:58:46.101861"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"asd65dsadsatest-test"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 0 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host/admin/odania/sites
Filter chain halted as :set_admin_site rendered or redirected
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------
Admin::Odania::SitesControllerTest: test_test_should_show_site
--------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language50' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short50' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short50"], ["name", "Language50"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.117609"], ["name", "User34"], ["updated_at", "2014-04-12 20:58:46.117609"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 34 #T1"], ["body_filtered", "Site Long Text 34 T1"], ["body_short", "Site Short Text 34"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.119651"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 34"], ["updated_at", "2014-04-12 20:58:46.119651"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Admin::Odania::SitesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."id" IS NULL ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY "odania_menus"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = 1 ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" ORDER BY name ASC[0m
[1m[35mOdania::Menu Load (0.1ms)[0m SELECT "odania_menus".* FROM "odania_menus" ORDER BY title ASC
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/admin/odania/shared/_menu.html.erb (1.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------------
Odania::DeliverControllerTest: test_test_should_redirect_to_target
------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language51' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short51' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short51"], ["name", "Language51"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.142525"], ["name", "User35"], ["updated_at", "2014-04-12 20:58:46.142525"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 35 #T1"], ["body_filtered", "Site Long Text 35 T1"], ["body_short", "Site Short Text 35"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.144824"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 35"], ["updated_at", "2014-04-12 20:58:46.144824"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::DeliverController#click as HTML
Parameters: {"target"=>"http://www.mylyconet.com/mikepetersen/", "id"=>"myid", "type"=>"test-type"}
Redirected to http://www.mylyconet.com/mikepetersen/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_item_target
-------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language52' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short52' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short52"], ["name", "Language52"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.161567"], ["name", "User36"], ["updated_at", "2014-04-12 20:58:46.161567"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 36 #T1"], ["body_filtered", "Site Long Text 36 T1"], ["body_short", "Site Short Text 36"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.163744"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 36"], ["updated_at", "2014-04-12 20:58:46.163744"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.168800"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.168800"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title97"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title97"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nurl: http://www.planetech.de\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#menu_index as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.1ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
Redirected to http://www.planetech.de
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_redirect_to_menu_prefix
--------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language53' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short53' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short53"], ["name", "Language53"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.231872"], ["name", "User37"], ["updated_at", "2014-04-12 20:58:46.231872"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 37 #T1"], ["body_filtered", "Site Long Text 37 T1"], ["body_short", "Site Short Text 37"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.234489"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 37"], ["updated_at", "2014-04-12 20:58:46.234489"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:46.240110"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.240110"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title98"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title98"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#index as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://test.host/de
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_404
-------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language54' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short54' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short54"], ["name", "Language54"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.255509"], ["name", "User38"], ["updated_at", "2014-04-12 20:58:46.255509"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 38 #T1"], ["body_filtered", "Site Long Text 38 T1"], ["body_short", "Site Short Text 38"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.257786"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 38"], ["updated_at", "2014-04-12 20:58:46.257786"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.263398"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.263398"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title99"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title99"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain2.com' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 2' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Site Description 2"], ["host", "www.domain2.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 2"], ["tracking_code", "TRACKING CODE 2"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain2.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 2]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" IS NULL ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 2]]
Completed 404 Not Found in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language55' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short55' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short55"], ["name", "Language55"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.284051"], ["name", "User39"], ["updated_at", "2014-04-12 20:58:46.284051"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 39 #T1"], ["body_filtered", "Site Long Text 39 T1"], ["body_short", "Site Short Text 39"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.286258"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 39"], ["updated_at", "2014-04-12 20:58:46.286258"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:46.291286"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.291286"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title100"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title100"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language56' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short56' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short56"], ["name", "Language56"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.296809"], ["name", "User40"], ["updated_at", "2014-04-12 20:58:46.296809"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 40 #T1"], ["body_filtered", "Site Long Text 40 T1"], ["body_short", "Site Short Text 40"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.298890"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 40"], ["updated_at", "2014-04-12 20:58:46.298890"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language57' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short57' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short57"], ["name", "Language57"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.305264"], ["name", "User41"], ["updated_at", "2014-04-12 20:58:46.305264"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 41 #T1"], ["body_filtered", "Site Long Text 41 T1"], ["body_short", "Site Short Text 41"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.307308"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 41"], ["updated_at", "2014-04-12 20:58:46.307308"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title101"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title101"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title101"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title101' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.4ms)
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 ORDER BY created_at DESC [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.2ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.3ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (3.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (4.7ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.3ms)
Completed 200 OK in 75ms (Views: 71.9ms | ActiveRecord: 0.9ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_content_list_for_tag
------------------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language58' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short58' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short58"], ["name", "Language58"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.399224"], ["name", "User42"], ["updated_at", "2014-04-12 20:58:46.399224"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 42 #T1"], ["body_filtered", "Site Long Text 42 T1"], ["body_short", "Site Short Text 42"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.401404"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 42"], ["updated_at", "2014-04-12 20:58:46.401404"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:46.406668"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.406668"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title102"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title102"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language59' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short59' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short59"], ["name", "Language59"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.412010"], ["name", "User43"], ["updated_at", "2014-04-12 20:58:46.412010"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 43 #T1"], ["body_filtered", "Site Long Text 43 T1"], ["body_short", "Site Short Text 43"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.414137"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 43"], ["updated_at", "2014-04-12 20:58:46.414137"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language60' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short60' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short60"], ["name", "Language60"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.419916"], ["name", "User44"], ["updated_at", "2014-04-12 20:58:46.419916"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 44 #T1"], ["body_filtered", "Site Long Text 44 T1"], ["body_short", "Site Short Text 44"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.422740"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 44"], ["updated_at", "2014-04-12 20:58:46.422740"], ["user_id", 3], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 3]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title103"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title103"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2 [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title103"}
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title103' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (1.6ms)
[1m[36mOdania::Content Load (0.2ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."language_id" = 1 AND "odania_tag_xrefs"."tag_id" = 1 ORDER BY created_at DESC[0m [["site_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_page_links.html.erb (0.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_index.html.erb (2.8ms)
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.8ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list
---------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language61' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short61' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short61"], ["name", "Language61"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.450267"], ["name", "User45"], ["updated_at", "2014-04-12 20:58:46.450267"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 45 #T1"], ["body_filtered", "Site Long Text 45 T1"], ["body_short", "Site Short Text 45"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.452420"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 45"], ["updated_at", "2014-04-12 20:58:46.452420"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.457662"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.457662"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title104"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title104"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language62' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short62' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short62"], ["name", "Language62"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.464113"], ["name", "User46"], ["updated_at", "2014-04-12 20:58:46.464113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 46 #T1"], ["body_filtered", "Site Long Text 46 T1"], ["body_short", "Site Short Text 46"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.466338"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 46"], ["updated_at", "2014-04-12 20:58:46.466338"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language63' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short63' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short63"], ["name", "Language63"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.472180"], ["name", "User47"], ["updated_at", "2014-04-12 20:58:46.472180"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 47 #T1"], ["body_filtered", "Site Long Text 47 T1"], ["body_short", "Site Short Text 47"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.474264"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 47"], ["updated_at", "2014-04-12 20:58:46.474264"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title105"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title105"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "--- {}\n"], ["target_type", "CONTENT_LIST"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title105/2-site-46"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105/2-site-46' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title105' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::User Load (0.1ms)[0m SELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ?[0m [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (3.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (6.1ms)
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.9ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_item_under_content_list_for_tag
-----------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language64' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short64' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short64"], ["name", "Language64"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.507606"], ["name", "User48"], ["updated_at", "2014-04-12 20:58:46.507606"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 48 #T1"], ["body_filtered", "Site Long Text 48 T1"], ["body_short", "Site Short Text 48"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.509620"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 48"], ["updated_at", "2014-04-12 20:58:46.509620"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.514533"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.514533"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title106"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title106"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language65' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short65' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short65"], ["name", "Language65"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.519718"], ["name", "User49"], ["updated_at", "2014-04-12 20:58:46.519718"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 49 #T1"], ["body_filtered", "Site Long Text 49 T1"], ["body_short", "Site Short Text 49"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.521961"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 49"], ["updated_at", "2014-04-12 20:58:46.521961"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language66' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short66' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short66"], ["name", "Language66"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.527938"], ["name", "User50"], ["updated_at", "2014-04-12 20:58:46.527938"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 50 #T1"], ["body_filtered", "Site Long Text 50 T1"], ["body_short", "Site Short Text 50"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.530298"], ["is_active", "t"], ["language_id", 4], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 50"], ["updated_at", "2014-04-12 20:58:46.530298"], ["user_id", 3], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 3 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 3], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 3]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title107"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["position", 3], ["target_data", "---\ntag: T1\n"], ["target_type", "CONTENT_LIST_FOR_TAG"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title107/2-site-49"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107/2-site-49' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title107' ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" INNER JOIN "odania_tag_xrefs" ON "odania_tag_xrefs"."ref_id" = "odania_contents"."id" AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' INNER JOIN "odania_tags" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_contents"."site_id" = ? AND "odania_tag_xrefs"."tag_id" = 1 AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.1ms)
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 57ms (Views: 52.3ms | ActiveRecord: 0.9ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item
-------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language67' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short67' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short67"], ["name", "Language67"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.609580"], ["name", "User51"], ["updated_at", "2014-04-12 20:58:46.609580"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 51 #T1"], ["body_filtered", "Site Long Text 51 T1"], ["body_short", "Site Short Text 51"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.611701"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 51"], ["updated_at", "2014-04-12 20:58:46.611701"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:46.616831"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.616831"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title108"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title108"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language68' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short68' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short68"], ["name", "Language68"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.622458"], ["name", "User52"], ["updated_at", "2014-04-12 20:58:46.622458"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 52 #T1"], ["body_filtered", "Site Long Text 52 T1"], ["body_short", "Site Short Text 52"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.624714"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 52"], ["updated_at", "2014-04-12 20:58:46.624714"], ["user_id", 2], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:46.630455"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title108"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title108' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.2ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.4ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (1.6ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.1ms)
Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.5ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------------------------------
Odania::MenuControllerTest: test_test_should_render_menu_item_which_is_lying_under_the_parent
---------------------------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language69' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short69' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short69"], ["name", "Language69"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.652981"], ["name", "User53"], ["updated_at", "2014-04-12 20:58:46.652981"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 53 #T1"], ["body_filtered", "Site Long Text 53 T1"], ["body_short", "Site Short Text 53"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.655299"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 53"], ["updated_at", "2014-04-12 20:58:46.655299"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.660658"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.660658"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title109"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title109"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language70' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short70' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short70"], ["name", "Language70"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.666632"], ["name", "User54"], ["updated_at", "2014-04-12 20:58:46.666632"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 54 #T1"], ["body_filtered", "Site Long Text 54 T1"], ["body_short", "Site Short Text 54"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.668779"], ["is_active", "t"], ["language_id", 3], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 54"], ["updated_at", "2014-04-12 20:58:46.668779"], ["user_id", 2], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 2], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 2]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title110"], ["menu_id", 1], ["position", 2], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title110"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 2[0m
[1m[35mSQL (0.0ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 2 [["menu_item_id", 2], ["updated_at", "2014-04-12 20:58:46.677406"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 2 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_menu_items" SET "full_path" = ?, "parent_id" = ?, "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 2[0m [["full_path", "title109/title110"], ["parent_id", 1], ["position", 1], ["target_data", "---\nid: 2\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::MenuController#show_page as HTML
Parameters: {"locale"=>"de", "path"=>"title109/title110"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."full_path" = 'title109/title110' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m [["menu_id", 1]]
[1m[35mOdania::Content Load (0.0ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."site_id" = ? AND "odania_contents"."id" = 2 ORDER BY "odania_contents"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::User Load (0.0ms)[0m [1mSELECT "odania_users".* FROM "odania_users" WHERE "odania_users"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" INNER JOIN "odania_tag_xrefs" ON "odania_tags"."id" = "odania_tag_xrefs"."tag_id" WHERE "odania_tag_xrefs"."ref_id" = ? AND "odania_tag_xrefs"."ref_type" = ? [["ref_id", 2], ["ref_type", "Odania::Content"]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_content_info.html.erb (1.8ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_update_view_counter.html.erb (0.3ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/contents/_show.html.erb (2.3ms)
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 2 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.1ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (2.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.5ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.6ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_existing_tag
----------------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language71' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short71' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short71"], ["name", "Language71"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.702482"], ["name", "User55"], ["updated_at", "2014-04-12 20:58:46.702482"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Site Long Text 55 #T1"], ["body_filtered", "Site Long Text 55 T1"], ["body_short", "Site Short Text 55"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.704760"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 55"], ["updated_at", "2014-04-12 20:58:46.704760"], ["user_id", 1], ["views", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:46.709816"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.709816"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title111"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title111"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? ORDER BY "odania_menu_items"."id" ASC LIMIT 1 [["menu_id", 1]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Content Load (0.1ms)[0m SELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = 1 ORDER BY "odania_contents"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "menu_item_id" = NULL WHERE "odania_contents"."menu_item_id" = 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:46.714829"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_menu_items" SET "position" = ?, "target_data" = ?, "target_type" = ? WHERE "odania_menu_items"."id" = 1[0m [["position", 2], ["target_data", "---\nid: 1\n"], ["target_type", "CONTENT"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "menu_item_id" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a #ABC-Tag test"], ["body_filtered", "This is a ABC-Tag test"], ["menu_item_id", 1], ["updated_at", "2014-04-12 20:58:46.719655"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'ABC-Tag' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "ABC-Tag"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC-Tag"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC-Tag' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? LIMIT 1[0m [["tag_id", 2]]
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mOdania::Content Load (0.1ms)[0m [1mSELECT "odania_contents".* FROM "odania_contents" WHERE "odania_contents"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC[0m [["menu_id", 1]]
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.7ms)
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.7ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_not_found_on_invalid_tag
----------------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language72' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short72' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short72"], ["name", "Language72"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.746764"], ["name", "User56"], ["updated_at", "2014-04-12 20:58:46.746764"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 56 #T1"], ["body_filtered", "Site Long Text 56 T1"], ["body_short", "Site Short Text 56"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.748784"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 56"], ["updated_at", "2014-04-12 20:58:46.748784"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.753834"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.753834"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title112"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title112"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#show as HTML
Parameters: {"tag"=>"ABC"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ? AND "odania_tags"."name" = 'ABC' ORDER BY "odania_tags"."id" ASC LIMIT 1 [["site_id", 1]]
Completed 404 Not Found in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------------
Odania::TagsControllerTest: test_test_should_render_tag_list
------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language73' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short73' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short73"], ["name", "Language73"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.768693"], ["name", "User57"], ["updated_at", "2014-04-12 20:58:46.768693"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 57 #T1"], ["body_filtered", "Site Long Text 57 T1"], ["body_short", "Site Short Text 57"], ["clicks", 1], ["created_at", "2014-04-12 20:58:46.770773"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 57"], ["updated_at", "2014-04-12 20:58:46.770773"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.775768"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.775768"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title113"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title113"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by Odania::TagsController#index as HTML
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tags" WHERE "odania_tags"."site_id" = ? LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."site_id" = ?[0m [["site_id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (3.1ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.5ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (0.0ms)
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------
HelperTest: test_authentication_before_filter
---------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_authorized" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_authorized as HTML
Redirected to http://www.example.com/
Filter chain halted as :authenticate_user! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_current_site_returns_site_for_host
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain3.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 3' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 3"], ["host", "www.domain3.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 3"], ["tracking_code", "TRACKING CODE 3"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_current_site" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_current_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain3.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
HelperTest: test_test_before_filter_for_active_site
---------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain4.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 4' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 4"], ["host", "www.domain4.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 4"], ["tracking_code", "TRACKING CODE 4"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Menu Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 2 AND "odania_menus"."language_id" = 1) LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-04-12 20:58:46.877152"], ["language_id", 1], ["published", "t"], ["site_id", 2], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.877152"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1[0m [["menu_id", 1]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?) [["full_path", "title114"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title114"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.domain4.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_active_site
----------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
Redirected to http://test.host
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
HelperTest: test_test_before_filter_without_an_default_site
-----------------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "odania_sites" WHERE "odania_sites"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[36mOdania::Site Load (0.2ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'www.example.com' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mOdania::Site Load (0.1ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."is_default" = 't' ORDER BY "odania_sites"."id" ASC LIMIT 1
Filter chain halted as :valid_site! rendered or redirected
Completed 503 Service Unavailable in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------------------
HelperTest: test_test_redirect_to_in_site_redirects_to_correct_site
-------------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'www.domain5.com' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Site 5' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Site Description 5"], ["host", "www.domain5.com"], ["is_active", "t"], ["is_default", "f"], ["name", "Site 5"], ["tracking_code", "TRACKING CODE 5"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Language Load (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."name" = 'German' AND "odania_languages"."id" != 1) LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE ("odania_languages"."iso_639_1" = 'de' AND "odania_languages"."id" != 1) LIMIT 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'redirect.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'RedirectSite' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "host", "is_active", "name", "redirect_to_id") VALUES (?, ?, ?, ?, ?) [["default_language_id", 1], ["host", "redirect.host"], ["is_active", "t"], ["name", "RedirectSite"], ["redirect_to_id", 2]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Started GET "/test/test_valid_site" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_valid_site as HTML
[1m[35mOdania::Site Load (0.2ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'redirect.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Site Load (0.0ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://www.domain5.com
Filter chain halted as :valid_site! rendered or redirected
Completed 302 Found in 16ms (ActiveRecord: 0.2ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------
HelperTest: test_test_view_helpers
----------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:46.942107"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:46.942107"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title115"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title115"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_view_helper?locale=de" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_view_helper as HTML
Parameters: {"locale"=>"de"}
[1m[36mOdania::Site Load (0.1ms)[0m [1mSELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "odania_sites".* FROM "odania_sites" WHERE "odania_sites"."is_active" = 't' AND "odania_sites"."host" = 'test.host' ORDER BY "odania_sites"."id" ASC LIMIT 1
[1m[36mOdania::Language Load (0.2ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' ORDER BY "odania_languages"."id" ASC LIMIT 1[0m
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? AND "odania_menus"."language_id" = 1 ORDER BY "odania_menus"."id" ASC LIMIT 1 [["site_id", 1]]
[1m[36mOdania::Language Load (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position ASC [["menu_id", 1]]
[1m[36mOdania::Menu Load (0.0ms)[0m [1mSELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOdania::MenuItem Load (0.0ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" = 1 ORDER BY position ASC[0m [["menu_id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (0.2ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_part.html.erb (1.9ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu.html.erb (2.4ms)
[1m[35mOdania::Menu Load (0.0ms)[0m SELECT "odania_menus".* FROM "odania_menus" WHERE "odania_menus"."site_id" = ? [["site_id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_menu_selector.html.erb (0.7ms)
Rendered /home/mike/workspace/OdaniaPortal/OdaniaCore/app/views/odania/shared/_flashes.html.erb (5.8ms)
Completed 200 OK in 27ms (Views: 17.4ms | ActiveRecord: 0.5ms)
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
HelperTest: test_user_signed_in_function_in_called
--------------------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/test/test_current_user" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_current_user as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
Started GET "/test/test_signed_in" for 127.0.0.1 at 2014-04-12 22:58:46 +0200
Processing by TestController#test_signed_in as HTML
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
MenuRouteTest: test_should_route_to_appropriate_menu
----------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language74' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short74' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short74"], ["name", "Language74"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:46.998500"], ["name", "User58"], ["updated_at", "2014-04-12 20:58:46.998500"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 58 #T1"], ["body_filtered", "Site Long Text 58 T1"], ["body_short", "Site Short Text 58"], ["clicks", 1], ["created_at", "2014-04-12 20:58:47.001004"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 58"], ["updated_at", "2014-04-12 20:58:47.001004"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:47.007484"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:47.007484"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title116"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title116"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
MenuRouteTest: test_undefined_locale_should_render_404
------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language75' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short75' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short75"], ["name", "Language75"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:47.025899"], ["name", "User59"], ["updated_at", "2014-04-12 20:58:47.025899"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "clicks", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id", "views") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Site Long Text 59 #T1"], ["body_filtered", "Site Long Text 59 T1"], ["body_short", "Site Short Text 59"], ["clicks", 1], ["created_at", "2014-04-12 20:58:47.028332"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-02-12 21:54:11.000000"], ["site_id", 1], ["title", "Site 59"], ["updated_at", "2014-04-12 20:58:47.028332"], ["user_id", 1], ["views", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Menu Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_menus" WHERE ("odania_menus"."site_id" = 1 AND "odania_menus"."language_id" = 1) LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menus" ("created_at", "language_id", "published", "site_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-04-12 20:58:47.033978"], ["language_id", 1], ["published", "t"], ["site_id", 1], ["title", "MyString"], ["updated_at", "2014-04-12 20:58:47.033978"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.0ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."menu_id" = ? AND "odania_menu_items"."parent_id" IS NULL ORDER BY position DESC LIMIT 1 [["menu_id", 1]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_menu_items" ("full_path", "menu_id", "position", "published", "target_data", "target_type", "title") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["full_path", "title117"], ["menu_id", 1], ["position", 1], ["published", "t"], ["target_data", "---\nurl: http://target.url.de\n"], ["target_type", "URL"], ["title", "title117"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Started GET "/asd" for 127.0.0.1 at 2014-04-12 22:58:47 +0200
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------
Odania::ContentTest: test_adding_new_tags
-----------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language76' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short76' LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short76"], ["name", "Language76"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:47.047694"], ["name", "User60"], ["updated_at", "2014-04-12 20:58:47.047694"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T2"], ["body_filtered", "This is a body T1 asdasdsa T2"], ["body_short", "This is a body T1 asdasdsa T2"], ["created_at", "2014-04-12 20:58:47.053030"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:47.049018"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:47.053030"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T2' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T2"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------
Odania::ContentTest: test_adding_new_tags_and_removing_old_ones
---------------------------------------------------------------
[1m[36mOdania::Language Load (0.1ms)[0m [1mSELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "de"], ["name", "German"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?) [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language77' LIMIT 1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short77' LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?)[0m [["iso_639_1", "short77"], ["name", "Language77"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-12 20:58:47.069892"], ["name", "User61"], ["updated_at", "2014-04-12 20:58:47.069892"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:58:47.073676"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:47.070877"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:47.073676"], ["user_id", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T1"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T4"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35mSQL (0.1ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T7"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 3]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::MenuItem Load (0.1ms)[0m [1mSELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m UPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1 [["body", "This is a body #T1 asdasdsa #T8 lorem #T4 #T1"], ["body_filtered", "This is a body T1 asdasdsa T8 lorem T4 T1"], ["updated_at", "2014-04-12 20:58:47.085875"]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mOdania::TagXref Load (0.1ms)[0m SELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ?[0m [["id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tags" WHERE "odania_tags"."id" = ? [["id", 3]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T8' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T8"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 4 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 4]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36mSQL (0.1ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 4[0m [["count", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 4]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------
Odania::ContentTest: test_removing_tags
---------------------------------------
[1m[35mOdania::Language Load (0.1ms)[0m SELECT "odania_languages".* FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" IS NULL LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35m (0.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'German' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'de' LIMIT 1[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "de"], ["name", "German"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mOdania::Site Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."host" = 'test.host' LIMIT 1[0m
[1m[35mOdania::Site Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_sites" WHERE "odania_sites"."name" = 'Default Site' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "odania_sites" ("default_language_id", "description", "host", "is_active", "is_default", "name", "tracking_code") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["default_language_id", 1], ["description", "Default Site Description"], ["host", "test.host"], ["is_active", "t"], ["is_default", "t"], ["name", "Default Site"], ["tracking_code", "TRACKING CODE"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::Language Exists (0.0ms)[0m SELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."name" = 'Language78' LIMIT 1
[1m[36mOdania::Language Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "odania_languages" WHERE "odania_languages"."iso_639_1" = 'short78' LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_languages" ("iso_639_1", "name") VALUES (?, ?) [["iso_639_1", "short78"], ["name", "Language78"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-12 20:58:47.151922"], ["name", "User62"], ["updated_at", "2014-04-12 20:58:47.151922"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_contents" ("body", "body_filtered", "body_short", "created_at", "is_active", "language_id", "published_at", "site_id", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "This is a body #T1 asdasdsa #T4 dasihdaius #T7"], ["body_filtered", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["body_short", "This is a body T1 asdasdsa T4 dasihdaius T7"], ["created_at", "2014-04-12 20:58:47.155306"], ["is_active", "t"], ["language_id", 2], ["published_at", "2014-04-12 20:58:47.152912"], ["site_id", 1], ["title", "asd123"], ["updated_at", "2014-04-12 20:58:47.155306"], ["user_id", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T1' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T1"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 1 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 1]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 1 [["count", 1]]
[1m[36mOdania::Tag Load (0.1ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?) [["name", "T4"], ["site_id", 1]]
[1m[36mOdania::TagXref Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m INSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?) [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 2[0m [["count", 1]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T7' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tags" ("name", "site_id") VALUES (?, ?)[0m [["name", "T7"], ["site_id", 1]]
[1m[35mOdania::TagXref Exists (0.1ms)[0m SELECT 1 AS one FROM "odania_tag_xrefs" WHERE ("odania_tag_xrefs"."tag_id" = 3 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags') LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "odania_tag_xrefs" ("context", "ref_id", "ref_type", "tag_id") VALUES (?, ?, ?, ?)[0m [["context", "tags"], ["ref_id", 1], ["ref_type", "Odania::Content"], ["tag_id", 3]]
[1m[35mOdania::Tag Load (0.0ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35mSQL (0.0ms)[0m UPDATE "odania_tags" SET "count" = ? WHERE "odania_tags"."id" = 3 [["count", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags"
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 1]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mOdania::MenuItem Load (0.1ms)[0m SELECT "odania_menu_items".* FROM "odania_menu_items" WHERE "odania_menu_items"."target_type" = 'CONTENT_LIST' ORDER BY "odania_menu_items"."id" ASC LIMIT 1
[1m[36mSQL (0.0ms)[0m [1mUPDATE "odania_contents" SET "body" = ?, "body_filtered" = ?, "updated_at" = ? WHERE "odania_contents"."id" = 1[0m [["body", "This is a body #T1 asdasdsa #T7"], ["body_filtered", "This is a body T1 asdasdsa T7"], ["updated_at", "2014-04-12 20:58:47.167767"]]
[1m[35mOdania::Tag Load (0.1ms)[0m SELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."name" = 'T4' AND "odania_tags"."site_id" = 1 ORDER BY "odania_tags"."id" ASC LIMIT 1
[1m[36mOdania::TagXref Load (0.1ms)[0m [1mSELECT "odania_tag_xrefs".* FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = 2 AND "odania_tag_xrefs"."ref_type" = 'Odania::Content' AND "odania_tag_xrefs"."ref_id" = 1 AND "odania_tag_xrefs"."context" = 'tags' ORDER BY "odania_tag_xrefs"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.0ms)[0m DELETE FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."id" = ? [["id", 2]]
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags" WHERE "odania_tags"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 2]]
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "odania_tags" WHERE "odania_tags"."id" = ?[0m [["id", 2]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mOdania::Tag Load (0.0ms)[0m [1mSELECT "odania_tags".* FROM "odania_tags"[0m
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ? [["tag_id", 1]]
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "odania_tag_xrefs" WHERE "odania_tag_xrefs"."tag_id" = ?[0m [["tag_id", 3]]
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "odania_tag_xrefs"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------
OdaniaCoreTest: test_OdaniaCore_is_a_module
-------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------
OdaniaCoreTest: test_configuration
----------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------------------
OdaniaCoreTest: test_configure_block_yields_OdaniaCore::Configuration
---------------------------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------
Odania::FilterTest: test_test_link_is_changed
---------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Odania::FilterTest: test_test_only_links_are_changed
----------------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------
Odania::FilterTest: test_test_tags_are_replaces
-----------------------------------------------
[1m[36m (0.0ms)[0m [1mrollback transaction[0m